summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
authorGreg Troxel <gdt@ir.bbn.com>2015-01-25 20:17:31 -0500
committerGreg Troxel <gdt@ir.bbn.com>2015-01-25 20:19:26 -0500
commit2b40e8145c2264df1febe9ee68ca0c5f60a4b8f1 (patch)
treeff631a1dd63c1fcf471763c7642bfd5eb70c07b0 /gpsfake
parent34b2cd737dbd9c5febfc8214e703bda7a88abf2d (diff)
downloadgpsd-2b40e8145c2264df1febe9ee68ca0c5f60a4b8f1.tar.gz
Print sys.platform and platform.platform().
They are different! This code printed one, and the if statement in gps/fake.py used the other.
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsfake b/gpsfake
index 9058b8fa..67ee1da6 100755
--- a/gpsfake
+++ b/gpsfake
@@ -153,7 +153,7 @@ if __name__ == '__main__':
elif (switch == '-t'):
tcp = True
elif (switch == '-T'):
- sys.stdout.write("%s: WRITE_PAD = %.f CLOSE_DELAY = %.2f\n" % (platform.platform(), gpsfake.WRITE_PAD, gpsfake.CLOSE_DELAY))
+ sys.stdout.write("sys %s platform %s: WRITE_PAD = %.f CLOSE_DELAY = %.2f\n" % (sys.platform, platform.platform(), gpsfake.WRITE_PAD, gpsfake.CLOSE_DELAY))
raise SystemExit,0
elif (switch == '-u'):
udp = True