projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Assembler: Don't print the real binary name in the help message
[b43-tools.git]
/
disassembler
/
brcm80211-ivaldump
diff --git
a/disassembler/brcm80211-ivaldump
b/disassembler/brcm80211-ivaldump
index 9a1ad2d7be5d03634ddf67df99b1a7807e4232a2..8a07f8577541aacd6d81b47e97276f324bdc73ce 100755
(executable)
--- a/
disassembler/brcm80211-ivaldump
+++ b/
disassembler/brcm80211-ivaldump
@@
-64,7
+64,10
@@
for idx in range(0, len(ivals), 8):
if size == 4:
print "\tmmio32\t0x%08X, 0x%04X" % (value, addr)
elif size == 2:
if size == 4:
print "\tmmio32\t0x%08X, 0x%04X" % (value, addr)
elif size == 2:
- print "\tmmio16\t0x%08X, 0x%04X" % (value, addr)
+ if value & 0xFFFF0000:
+ print "The input file is malformed (invalid value for 16bit field)"
+ sys.exit(1)
+ print "\tmmio16\t0x%04X, 0x%04X" % (value, addr)
else:
print "The input file is malformed (invalid size field: 0x%04X)" % size
sys.exit(1)
else:
print "The input file is malformed (invalid size field: 0x%04X)" % size
sys.exit(1)