summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-01-01 21:20:42 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-01-01 21:20:42 +0100
commit59d3693d691260f7c5f3719bb1fdd547e9f14cc6 (patch)
treeeb1ae5b62f45ba23257d3fcc6c0985e3d988b574
parent4e623379ca2ba5c502395234ab6ab9a8950eb256 (diff)
tibtoa: A bit more/better error checking
-rwxr-xr-xbin/tibtoa4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/tibtoa b/bin/tibtoa
index 18fb865..fd7b74f 100755
--- a/bin/tibtoa
+++ b/bin/tibtoa
@@ -705,7 +705,7 @@ if (header_type($header) eq 'program') {
$out = $special->{$char}->{$char2};
} else {
printf STDERR (
- "Unknown byte 0x%02x at offset %d\n",
+ "Unknown byte 0x%02x at offset 0x%02x\n",
$char,
$offset - 1,
);
@@ -754,4 +754,6 @@ if (header_type($header) eq 'program') {
print ' | ';
}
}
+} else {
+ print STDERR "file type not supported\n";
}