EXIF_LOG_NO_MEMORY macro: use different format string in message
authorHans Ulrich Niedermann <hun@n-dimensional.de>
Mon, 25 Jun 2007 23:03:00 +0000 (01:03 +0200)
committerHans Ulrich Niedermann <hun@n-dimensional.de>
Mon, 25 Jun 2007 23:03:00 +0000 (01:03 +0200)
libexif/exif-log.h

index 01eed3f65e1a85f5cb8355d84a4dc1453a854a69..2707802433281671bffc838adc56cfb6c7ee35e4 100644 (file)
@@ -66,7 +66,7 @@ void     exif_logv (ExifLog *log, ExifLogCode, const char *domain,
                    const char *format, va_list args);
 
 /* For your convenience */
-#define EXIF_LOG_NO_MEMORY(l,d,s) exif_log (l, EXIF_LOG_CODE_NO_MEMORY, d, "Could not allocate %i byte(s).", s)
+#define EXIF_LOG_NO_MEMORY(l,d,s) exif_log ((l), EXIF_LOG_CODE_NO_MEMORY, (d), "Could not allocate %lu byte(s).", (unsigned long)(s))
 
 #ifdef __cplusplus
 }