mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
common: Change argument order of log_printhex.
* common/logging.c (log_printhex): Chnage order of args. Make it printf alike. Change all callers. * configure.ac: Add -Wno-format-zero-length -- This makes it consistent with modern libgpgrt logging and thus eases back porting from newer GnuPG versions which use libgpgrt logging. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
aec7d136e4
commit
c6324ee07a
26 changed files with 84 additions and 76 deletions
|
@ -103,11 +103,12 @@ void log_debug_with_string (const char *string, const char *fmt,
|
|||
void log_printf (const char *fmt, ...) GPGRT_ATTR_PRINTF(1,2);
|
||||
void log_flush (void);
|
||||
|
||||
/* Print a hexdump of BUFFER. With TEXT passes as NULL print just the
|
||||
raw dump, with TEXT being an empty string, print a trailing
|
||||
linefeed, otherwise print an entire debug line with TEXT followed
|
||||
by the hexdump and a final LF. */
|
||||
void log_printhex (const char *text, const void *buffer, size_t length);
|
||||
/* Print a hexdump of BUFFER. With FMT passed as NULL print just the
|
||||
* raw dump, with FMT being an empty string, print a trailing
|
||||
* linefeed, otherwise print an entire debug line with expanded FMT
|
||||
* followed by the hexdump and a final LF. */
|
||||
void log_printhex (const void *buffer, size_t length,
|
||||
const char *fmt, ...) GPGRT_ATTR_PRINTF(3,4);
|
||||
|
||||
void log_clock (const char *string);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue