summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-05-28 14:54:20 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-05-28 14:59:52 +0300
commita8472a0be106776dd70a2174207a018187790fa7 (patch)
tree92e64fafd24b35d2a8ef238c7e44f54a672bc222
parent99093d5ac8dc4307769c324c2dbaf18849ad8706 (diff)
downloadvdr-plugin-text2skin-a8472a0be106776dd70a2174207a018187790fa7.tar.gz
vdr-plugin-text2skin-a8472a0be106776dd70a2174207a018187790fa7.tar.bz2
Clean up debug/bench build format string warnings.
-rw-r--r--HISTORY1
-rw-r--r--common.h3
2 files changed, 3 insertions, 1 deletions
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)