summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-01-02 17:42:23 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-01-02 17:44:43 +0100
commit4c4a2c705525eadb356d2cc0e3d98361992698e9 (patch)
treedb17cda112acc3c038b6e6c7521627875cdddf96
parentb88998ed6503c1745460482c857e0799eccfa60e (diff)
tibtoa: Print *real* offset (including header) upon error
-rwxr-xr-xbin/tibtoa4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/tibtoa b/bin/tibtoa
index 92d7793..d4c4262 100755
--- a/bin/tibtoa
+++ b/bin/tibtoa
@@ -743,9 +743,9 @@ if ($header{type} eq 'program') {
$out = $special->{$char}->{$char2};
} else {
printf STDERR (
- "Unknown byte 0x%02x at offset 0x%02x\n",
+ "Unknown byte 0x%02x at %04x\n",
$char,
- $offset - 1,
+ $headerlength + $offset - 1,
);
$out = chr($char);
}