diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-01 15:24:37 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-01-01 15:24:37 +0100 |
commit | b640948bc1831dd72b6575d0037046924a4f7de6 (patch) | |
tree | 7c925e86390b2122ffa3e31e77ee214531127a32 /bin | |
parent | 347b60b62be557c42e5c0bbc92dbb8561a931178 (diff) |
tibtoa: Print offset for unknown bytes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/tibtoa | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -635,7 +635,11 @@ while($offset <= $length) { $char2 = ord(substr($program, $offset++, 1)); $out = $special->{$char}->{$char2}; } else { - warn(sprintf('Unknown byte 0x%02x', $char)); + printf STDERR ( + "Unknown byte 0x%02x at offset %d\n", + $char, + $offset - 1, + ); $out = chr($char); } if ($opts{i}) { |