projects
/
debian
/
gnuradio
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge commit 'v3.3.0' into upstream
[debian/gnuradio]
/
usrp
/
host
/
apps
/
dump_shorts
1
#!/usr/bin/env python
2
# -*- Python -*-
3
4
import sys, errno
5
6
counter = 0
7
8
try:
9
while 1:
10
x = sys.stdin.read (2)
11
if not x:
12
break
13
14
v = (ord(x[1]) << 8) | ord(x[0])
15
sys.stdout.write ("0x%08x %6d 0x%04x\n" % (counter, v, v))
16
counter += 1
17
except IOError, e:
18
if e.errno == errno.EPIPE:
19
sys.exit (0)
20
21
22
23