summaryrefslogtreecommitdiff
path: root/gpscat
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-01 18:27:33 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-03-01 18:27:33 -0500
commit5a99a614e067b46ef2e6edc2d5cf6f5cbdce418e (patch)
treefb1fed4c66064862ead42330a030289eaf0bac2c /gpscat
parent1bb7e70bb95bb8130cf1203769c0e75792d7c4d2 (diff)
downloadgpsd-5a99a614e067b46ef2e6edc2d5cf6f5cbdce418e.tar.gz
Include a stream counter in the gpscat -t output.
Diffstat (limited to 'gpscat')
-rwxr-xr-xgpscat2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpscat b/gpscat
index 40ad91b4..f3903faa 100755
--- a/gpscat
+++ b/gpscat
@@ -123,7 +123,7 @@ if __name__ == '__main__':
if length == 0:
break
if typeflag:
- sys.stdout.write(`ptype` + " (" + `length` + "): " + hexdump(packet))
+ sys.stdout.write(`ptype` + " (" + `length` + "@" + `counter-length` + "): " + hexdump(packet))
sys.stdout.write("\n")
else:
sys.stdout.write(hexdump(packet) + "\n")