Lines Matching refs:sys
27 import sys
73 sys.stderr.write('Unsupported btsnooz version: %s\n' % version)
79 sys.stdout.write('btsnoop\x00\x00\x00\x00\x01\x00\x00\x03\xea')
106 sys.stdout.write(struct.pack('>II', length, length))
107 sys.stdout.write(struct.pack('>II', type_to_direction(type), 0))
108 …sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF)))
109 sys.stdout.write(type_to_hci(type))
110 sys.stdout.write(decompressed[offset:offset + length - 1])
133 sys.stdout.write(struct.pack('>II', packet_length, length))
134 sys.stdout.write(struct.pack('>II', type_to_direction(snooz_type), 0))
135 …sys.stdout.write(struct.pack('>II', (first_timestamp_ms >> 32), (first_timestamp_ms & 0xFFFFFFFF)))
136 sys.stdout.write(type_to_hci(snooz_type))
137 sys.stdout.write(decompressed[offset:offset + length - 1])
142 if len(sys.argv) > 2:
143 sys.stderr.write('Usage: %s [bugreport]\n' % sys.argv[0])
153 sys.exit(0)
160 sys.stderr.write('No btsnooz section found in bugreport.\n')
161 sys.exit(1)