From d50b0208ac812a8d01d4ba82fa5e98f2b7642b77 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 28 Sep 2013 13:40:41 +0200 Subject: [PATCH] hdd_menu: avoid compiler warning Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a6b41ccc7268dd66b52ec6664d72771b12935a1f Author: Stefan Seyfried Date: 2013-09-28 (Sat, 28 Sep 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/hdd_menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index 675790a90..81c6b1a6e 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -191,7 +191,8 @@ int CHDDMenuHandler::doMenu () if (ret != -1) { if ((int)(s.st_rdev & drive_mask) == root_dev) { isroot = true; - printf("-> root device is on this disk 0x%04" PRIx64 ", skipping\n", s.st_rdev); + /* 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);