From: Lluís Date: Wed, 6 Apr 2011 18:34:03 +0000 (+0200) Subject: trace: [ust] fix generation of 'trace.c' on events without args X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fa2d480a20345b8f10881712dbcf3f5f48b5905b;p=qemu.git trace: [ust] fix generation of 'trace.c' on events without args Signed-off-by: Lluís Vilanova Signed-off-by: Stefan Hajnoczi --- diff --git a/scripts/tracetool b/scripts/tracetool index 9912f368d2..2155a57df2 100755 --- a/scripts/tracetool +++ b/scripts/tracetool @@ -338,6 +338,7 @@ linetoc_ust() name=$(get_name "$1") args=$(get_args "$1") argnames=$(get_argnames "$1", ",") + [ -z "$argnames" ] || argnames=", $argnames" fmt=$(get_fmt "$1") cat <