From: Martin Mares Date: Thu, 18 Jul 2019 22:13:55 +0000 (+0200) Subject: Utilities: debug_printf knows how to format %c X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3b3af30c8751709758c894d21a486ae63231606b;p=home-hw.git Utilities: debug_printf knows how to format %c --- diff --git a/lib/util-debug.c b/lib/util-debug.c index b61ace5..72a566e 100644 --- a/lib/util-debug.c +++ b/lib/util-debug.c @@ -167,6 +167,9 @@ void debug_printf(const char *fmt, ...) c = *fmt++; switch (c) { + case 'c': + debug_putc(va_arg(args, int)); + break; case 'd': printf_number(va_arg(args, int), width, flags | PF_SIGNED, 10); break;