From 613e60ca2af4e31b1d043042c8c13ad685ced9d8 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 30 Dec 2020 13:22:15 +0100 Subject: Declared nDPI id and flow structs in nDPId flow info struct. Two reasons: * reduce heap memory allocations * nDPId flow info struct may be inflated in the future (more bytes to compress) Signed-off-by: Toni Uhlig --- examples/c-json-stdout/c-json-stdout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/c-json-stdout') diff --git a/examples/c-json-stdout/c-json-stdout.c b/examples/c-json-stdout/c-json-stdout.c index 015bc99fe..e17f16a1c 100644 --- a/examples/c-json-stdout/c-json-stdout.c +++ b/examples/c-json-stdout/c-json-stdout.c @@ -93,7 +93,7 @@ int main(void) if (buf[json_bytes - 2] != '}' || buf[json_bytes - 1] != '\n') { - fprintf(stderr, "BUG: Invalid JSON string: %.*s\n", (int)json_bytes, buf); + fprintf(stderr, "BUG: Invalid JSON string: \"%.*s\"\n", (int)json_bytes, buf); exit(1); } -- cgit v1.2.3