From 1e692f5e44915a81854a09f0260a9a8b3aede0ff Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 17 Jan 2007 16:26:40 +0000 Subject: [PATCH] * Add %x to the format string parameters supported by debug(). --- src/debug.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/debug.c b/src/debug.c index 246cdc5..77aa966 100644 --- a/src/debug.c +++ b/src/debug.c @@ -101,6 +101,11 @@ void _zz_debug(char const *format, ...) int i = va_arg(args, int); WRITE_INT(fd, i, 10); } + else if(*f == 'x') + { + int i = va_arg(args, int); + WRITE_INT(fd, i, 16); + } else if(f[0] == 'l' && f[1] == 'i') { long int i = va_arg(args, long int);