From f5f0171d55c33c214ccafa7ed93b0f9e760f818a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 18 Aug 2009 10:46:34 +0000 Subject: [PATCH] Fix compiler size warning for debug output --- util/ChangeLog | 3 +++ util/iobuf.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/util/ChangeLog b/util/ChangeLog index 1ae5ac57d..8c7d995c8 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,5 +1,8 @@ 2009-08-18 Werner Koch + * iobuf.c (fd_cache_close): Change debug printf format assuming + that FILEP_OR_FD is today always an int. + * miscutil.c (print_string2): Loose check for control characters to better cope with utf-8. The range 0x80..0x9f is nowadays not anymore accidently used for control charaters. Fixes bug#1103. diff --git a/util/iobuf.c b/util/iobuf.c index e14a7cce0..a5ba91e6f 100644 --- a/util/iobuf.c +++ b/util/iobuf.c @@ -319,7 +319,7 @@ fd_cache_close (const char *fname, FILEP_OR_FD fp) close(fp); #endif if( DBG_IOBUF ) - log_debug ("fd_cache_close (%p) real\n", (void*)fp); + log_debug ("fd_cache_close (%d) real\n", (int)fp); return; } /* try to reuse a slot */