From: Simon Marchi Date: Mon, 27 May 2019 18:50:19 +0000 (-0400) Subject: Fix: sink.text.pretty: comma in enum fields X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=55c68a1a729551ca7d697d6e771064a06a19c206;hp=55c68a1a729551ca7d697d6e771064a06a19c206;p=babeltrace.git Fix: sink.text.pretty: comma in enum fields The condition for printing commas that separate labels of enum fields is reversed. It causes a comma tu be spuriously printed before the first label: enumfield = ( , "zero" : container = 0 ) instead of: enumfield = ( "zero" : container = 0 ) With multiple matching labels, before: enumfield = ( , "zero""one" : container = 0 ) and after: enumfield = ( "zero", "one" : container = 0 Change-Id: I03452b8ece4f97bf0c819f6885ef512f7ddc31e6 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/1334 Reviewed-by: Philippe Proulx ---