From: razvanm Date: Mon, 29 Dec 2008 23:52:03 +0000 (+0000) Subject: Don't print empty lines in the PRINTF from tos.py X-Git-Tag: rc_6_tinyos_2_1_1~538 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=2180d0b1c22ac4d98f2c885b4a3fcbf524a48842 Don't print empty lines in the PRINTF from tos.py --- diff --git a/support/sdk/python/tos.py b/support/sdk/python/tos.py index ead2c582..83c08ade 100644 --- a/support/sdk/python/tos.py +++ b/support/sdk/python/tos.py @@ -407,7 +407,7 @@ def printfHook(packet): s = "".join([chr(i) for i in packet.data]).strip('\0') lines = s.split('\n') for line in lines: - print "PRINTF:", line + if line: print "PRINTF:", line packet = None # No further processing for the printf packet return packet