hdd_menu: avoid compiler warning

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
Stefan Seyfried
2013-09-28 13:40:41 +02:00
committed by Jacek Jendrzej
parent f485bceff7
commit a94d9ea8f8

View File

@@ -183,7 +183,8 @@ int CHDDMenuHandler::doMenu ()
if (ret != -1) {
if ((int)(s.st_rdev & 0x0ffc0) == root_dev) {
isroot = true;
printf("-> root device is on this disk, skipping\n");
/* dev_t is different sized on different architectures :-( */
printf("-> root device is on this disk 0x%04x, skipping\n", (int)s.st_rdev);
}
}
close(fd);