From 33397874da5b29b16bcac13624160a89eb010058 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 23 Apr 2006 11:23:17 +0200 Subject: Fixed a format string in recording.c to avoid a compiler warning on 64bit systems --- CONTRIBUTORS | 5 +++++ HISTORY | 3 +++ recording.c | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 46efc30a..cda2ec5e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1737,6 +1737,7 @@ Christian Wieninger for suggesting to add cMenuEditStrItem::InEditMode() for his idea of going directly into the "Edit timer" menu for a timer created from the "Schedule" menu in case it starts withing the next two minutes + for reporting a problem with a format string in recording.c on 64bit systems Thiemo Gehrke for suggesting to add a setup option to turn off the automatic timeout of the @@ -1857,3 +1858,7 @@ Peter Juszack Pierre Briec for translating OSD texts to the French language + +Werner Schweer + for pointing out that the 'z' printf modifier should be used for 'size_t' type + arguments diff --git a/HISTORY b/HISTORY index dac02f47..0271131f 100644 --- a/HISTORY +++ b/HISTORY @@ -4643,3 +4643,6 @@ Video Disk Recorder Revision History - Fixed some missing '-' in the German OSD texts (thanks to Walter Koch). - Added an error message about plugins that don't honor APIVERSION in their Makefile (based on a suggestion by Udo Richter). +- Fixed a format string in recording.c to avoid a compiler warning on 64bit systems + (thanks to Christian Wieninger for reporting, and Werner Schweer for pointing out + that the 'z' modifier should be used here). diff --git a/recording.c b/recording.c index 1f2f015b..351713e9 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.146 2006/04/17 11:00:00 kls Exp $ + * $Id: recording.c 1.147 2006/04/23 10:43:06 kls Exp $ */ #include "recording.h" @@ -1197,7 +1197,7 @@ cIndexFile::cIndexFile(const char *FileName, bool Record) LOG_ERROR_STR(fileName); } else - esyslog("ERROR: can't allocate %d bytes for index '%s'", size * sizeof(tIndex), fileName); + esyslog("ERROR: can't allocate %zd bytes for index '%s'", size * sizeof(tIndex), fileName); } } else -- cgit v1.2.3