From e5e27e39e123a1b5a99aef1fc8b58e9295851c59 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Mon, 28 Dec 2015 16:21:58 +0100 Subject: [PATCH] helpers: fix printf type warning There is no portable way to do this without a cast, and since 64bit filesystem magic numbers exist, cast to an at least 64bit sized type (unsigned long long). Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/be8db2598ffffcd3462ce3cf30fe3e1499c5f4bb Author: Stefan Seyfried Date: 2015-12-28 (Mon, 28 Dec 2015) --- src/system/helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/helpers.cpp b/src/system/helpers.cpp index 0913d3fcc..1ccc0b301 100644 --- a/src/system/helpers.cpp +++ b/src/system/helpers.cpp @@ -285,7 +285,7 @@ int check_dir(const char * dir, bool allow_tmp) ret = 0; // ok } if(ret == -1) - printf("Wrong Filessystem Type: 0x%" PRIx32"\n",s.f_type); + printf("Wrong Filessystem Type: 0x%llx\n", (unsigned long long)s.f_type); } return ret; }