From: Stefan Hajnoczi Date: Tue, 5 Oct 2010 13:28:51 +0000 (+0100) Subject: trace: Don't strip lines containing '#' arbitrarily X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~7105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5eb5527b1eaec0955a91f8532424bb45611b7b0c;p=sdk%2Femulator%2Fqemu.git trace: Don't strip lines containing '#' arbitrarily Although comment lines must be skipped, the '#' character can occur in valid format strings. Be more careful when checking for comments. Leave comments at the end of the line where they will not interfere with other processing. Signed-off-by: Stefan Hajnoczi Signed-off-by: Blue Swirl --- diff --git a/tracetool b/tracetool index 534cc70..63e3e29 100755 --- a/tracetool +++ b/tracetool @@ -318,8 +318,7 @@ convert() while read -r str; do # Skip comments and empty lines - str=${str%%#*} - test -z "$str" && continue + test -z "${str%%#*}" && continue # Process the line. The nop backend handles disabled lines. disable=${str%%disable *}