diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-05 18:08:26 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-05 18:08:26 +0200 |
commit | 227af67a3cbf665f46c172dfd5147065c9ae95aa (patch) | |
tree | b880005926d932a80690e1e67e4767f2e9b01af0 | |
parent | 450bbeb8a00cc695cc2c62f48c821388d6191e00 (diff) | |
download | fastd-227af67a3cbf665f46c172dfd5147065c9ae95aa.tar fastd-227af67a3cbf665f46c172dfd5147065c9ae95aa.zip |
printf: add %p pattern
-rw-r--r-- | src/printf.c | 4 |
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*); |