From fea1de69b04565f81558462181e25716cb12ab37 Mon Sep 17 00:00:00 2001 From: Renuka Manavalan Date: Fri, 17 Jun 2022 17:33:54 +0000 Subject: [PATCH] Comments added for i/p file format --- src/sonic-eventd/tools/events_tool.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sonic-eventd/tools/events_tool.cpp b/src/sonic-eventd/tools/events_tool.cpp index 3044c0a557a1..140ad9fc5619 100644 --- a/src/sonic-eventd/tools/events_tool.cpp +++ b/src/sonic-eventd/tools/events_tool.cpp @@ -3,6 +3,16 @@ #include "events.h" #include "events_common.h" +/* + * Sample i/p file contents for send + * + * {"src_0:key-0": {"foo": "bar", "hello": "world" }} + * {"src_0:key-1": {"foo": "barXX", "hello": "world" }} + * + * Repeat the above line to increase entries. + * Each line is parsed independently, so no "," expected at the end. + */ + #define ASSERT(res, m, ...) \ if (!(res)) {\ int _e = errno; \