* Add %x to the format string parameters supported by debug().

This commit is contained in:
Sam Hocevar
2007-01-17 16:26:40 +00:00
committed by sam
parent 383ef37246
commit 1e692f5e44
+5
View File
@@ -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);