From: Daniel Borkmann Date: Thu, 31 Jan 2013 08:39:12 +0000 (+0100) Subject: proto_none: minor: make hex/chr conform with the rest X-Git-Url: https://repo.or.cz/w/netsniff-ng.git/commitdiff_plain/f2820bb9a602b764755cdce5fdb7db23dc26f1a0 proto_none: minor: make hex/chr conform with the rest Signed-off-by: Daniel Borkmann --- diff --git a/proto_none.c b/proto_none.c index 2f1bcc3b..9d9af45b 100644 --- a/proto_none.c +++ b/proto_none.c @@ -20,7 +20,7 @@ static void _hex(uint8_t *ptr, size_t len) if (!len) return; - tprintf(" [ hex "); + tprintf(" [ Hex "); for (; ptr && len-- > 0; ptr++) tprintf(" %.2x", *ptr); tprintf(" ]\n"); @@ -42,7 +42,7 @@ static void _ascii(uint8_t *ptr, size_t len) if (!len) return; - tprintf(" [ chr "); + tprintf(" [ Chr "); for (; ptr && len-- > 0; ptr++) tprintf("%c", isprint(*ptr) ? *ptr : '.'); tprintf(" ]\n");