From 69aa77b445bae0bb242557f792a7e1b34d3c74ec Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 12 Jan 2014 14:45:48 +0100 Subject: [PATCH] dboxinfo: fix format strings for uint64_t Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f23b9074f658e96364a79b06d3c5d96c629b87d6 Author: Stefan Seyfried Date: 2014-01-12 (Sun, 12 Jan 2014) --- src/gui/dboxinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/dboxinfo.cpp b/src/gui/dboxinfo.cpp index c397e73cc..495f13f46 100644 --- a/src/gui/dboxinfo.cpp +++ b/src/gui/dboxinfo.cpp @@ -183,10 +183,10 @@ static std::string bytes2string(uint64_t bytes, bool binary) char result[80]; if (b < base) - snprintf(result, sizeof(result), "%llu%s%02llu ", b, g_Locale->getText(LOCALE_UNIT_DECIMAL), + snprintf(result, sizeof(result), "%" PRIu64 "%s%02" PRIu64 " ", b, g_Locale->getText(LOCALE_UNIT_DECIMAL), (bytes - b * factor) * 100 / factor); else // no need for fractions for larger numbers - snprintf(result, sizeof(result), "%llu ", b); + snprintf(result, sizeof(result), "%" PRIu64 " ", b); std::string res(result); if (*unit) {