From 227af67a3cbf665f46c172dfd5147065c9ae95aa Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 5 Jun 2012 18:08:26 +0200 Subject: printf: add %p pattern --- src/printf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/printf.c b/src/printf.c index 42d8720..d2da770 100644 --- a/src/printf.c +++ b/src/printf.c @@ -104,6 +104,10 @@ int fastd_vsnprintf(const fastd_context *ctx, char *buffer, size_t size, const c buffer += snprintf_safe(buffer, buffer_end-buffer, "%s", va_arg(ap, char*)); break; + case 'p': + buffer += snprintf_safe(buffer, buffer_end-buffer, "%p", va_arg(ap, void*)); + break; + case 'E': eth_addr = va_arg(ap, const fastd_eth_addr*); -- cgit v1.2.3