From a8472a0be106776dd70a2174207a018187790fa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 28 May 2011 14:54:20 +0300 Subject: Clean up debug/bench build format string warnings. --- HISTORY | 1 + common.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 6a315b4..5682ca8 100644 --- a/HISTORY +++ b/HISTORY @@ -8,6 +8,7 @@ VDR Plugin 'text2skin' Revision History - Added experimental RELAX NG schema for skin XML files. - Set minimum value of bitmap cache size in menu to 1. - Fix bitmap cache size initialization when built with gcc 4.6. +- Warning and code cleanups. 2010-06-21: Version 1.3.1 diff --git a/common.h b/common.h index 1438d3e..e21dc06 100644 --- a/common.h +++ b/common.h @@ -13,8 +13,9 @@ # else # define Dprintf(x...) # endif +# define __STDC_FORMAT_MACROS # define Dbench(x) uint64_t bench_##x = cTimeMs::Now() -# define Ddiff(t,x) fprintf(stderr, "%s took %llu ms\n", t, cTimeMs::Now() - bench_##x) +# define Ddiff(t,x) fprintf(stderr, "%s took %"PRIu64" ms\n", t, cTimeMs::Now() - bench_##x) #else # define Dprintf(x...) # define Dbench(x) -- cgit v1.2.3