From be8db2598ffffcd3462ce3cf30fe3e1499c5f4bb 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). --- 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; }