summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-12-30 13:22:15 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-12-30 13:28:32 +0100
commit613e60ca2af4e31b1d043042c8c13ad685ced9d8 (patch)
treeb9e98542a24b438f81ea020bff2f59b83aa9098d /examples
parente0be911633428b852bcbbfbb40425e47f82429de (diff)
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 <matzeton@googlemail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/c-json-stdout/c-json-stdout.c2
1 files changed, 1 insertions, 1 deletions
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);
}