diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-09-03 21:53:45 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-09-03 21:53:45 +0200 |
commit | 02c1cb4ce21dca6cc63545cd5bd7ed621ed61529 (patch) | |
tree | 7c953fbb9c062936b66f63a8d95b5702da7ece8e /src/printf.c | |
parent | f0fa4e0c9085e0b4476b144185040ce9fbdc11e3 (diff) | |
download | fastd-02c1cb4ce21dca6cc63545cd5bd7ed621ed61529.tar fastd-02c1cb4ce21dca6cc63545cd5bd7ed621ed61529.zip |
Add packet/byte statistics
Diffstat (limited to 'src/printf.c')
-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 deb48c0..6feb72a 100644 --- a/src/printf.c +++ b/src/printf.c @@ -125,6 +125,10 @@ int fastd_vsnprintf(const fastd_context_t *ctx, char *buffer, size_t size, const buffer += snprintf_safe(buffer, buffer_end-buffer, "%u", va_arg(ap, unsigned int)); break; + case 'U': + buffer += snprintf_safe(buffer, buffer_end-buffer, "%llu", (unsigned long long)va_arg(ap, uint64_t)); + break; + case 's': buffer += snprintf_safe(buffer, buffer_end-buffer, "%s", va_arg(ap, char*)); break; |