From 565fe80db1335fc811f93c03161901a9c5490478 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 16 Oct 2020 17:23:39 +0200 Subject: [PATCH] tool/sm_random_check: update to python3 --- tool/sm_random_check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tool/sm_random_check.py b/tool/sm_random_check.py index 299bcaba1..f7f7d4f8e 100755 --- a/tool/sm_random_check.py +++ b/tool/sm_random_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # BlueKitchen GmbH (c) 2014 # Report SM Pairing Random packets with value zero @@ -69,7 +69,7 @@ def check_file(infile): if warning: print("%s contains SM Pairing Random command with Zeroes:" % infile) warning = False - print time, packet_types[type], as_hex(packet) + print (time, packet_types[type], as_hex(packet)) if not warning: print("") @@ -78,7 +78,7 @@ def check_file(infile): print ("Error parsing pklg at offset %u (%x)." % (pos, pos)) if len(sys.argv) == 1: - print 'Usage: ', sys.argv[0], 'hci_dump.pklg' + print ('Usage: ' + sys.argv[0] + ' hci_dump.pklg') exit(0) for infile in sys.argv[2:]: