summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-05 18:08:26 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-05 18:08:26 +0200
commit227af67a3cbf665f46c172dfd5147065c9ae95aa (patch)
treeb880005926d932a80690e1e67e4767f2e9b01af0 /src
parent450bbeb8a00cc695cc2c62f48c821388d6191e00 (diff)
downloadfastd-227af67a3cbf665f46c172dfd5147065c9ae95aa.tar
fastd-227af67a3cbf665f46c172dfd5147065c9ae95aa.zip
printf: add %p pattern
Diffstat (limited to 'src')
-rw-r--r--src/printf.c4
1 files changed, 4 insertions, 0 deletions
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*);