summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-07-03 01:27:24 +0200
committerTor Andersson <tor@ghostscript.com>2009-07-03 01:27:24 +0200
commit4db61b8289e530a87e118c94bd16572606bfc76a (patch)
tree07e2d1dcaee40101edcb4432c59593b1388bc1c8
parentf95a0e2a370bb08f65318dc957b36614abeaf442 (diff)
downloadmupdf-4db61b8289e530a87e118c94bd16572606bfc76a.tar.xz
Improve error messages in fontdump tool.
-rw-r--r--mupdf/fontdump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mupdf/fontdump.c b/mupdf/fontdump.c
index 06cd2e0a..353dcd97 100644
--- a/mupdf/fontdump.c
+++ b/mupdf/fontdump.c
@@ -1,4 +1,4 @@
-/* hexdump.c -- an "xxd -i" workalike */
+/* fontdump.c -- an "xxd -i" workalike for dumping binary fonts as source code */
#include <stdio.h>
#include <string.h>
@@ -34,14 +34,14 @@ main(int argc, char **argv)
if (argc < 3)
{
- fprintf(stderr, "usage: hexdump output.c input.dat\n");
+ fprintf(stderr, "usage: fontdump output.c input.dat\n");
return 1;
}
fo = fopen(argv[1], "wb");
if (!fo)
{
- fprintf(stderr, "hexdump: could not open output file\n");
+ fprintf(stderr, "fontdump: could not open output file '%s'\n", argv[1]);
return 1;
}
@@ -50,7 +50,7 @@ main(int argc, char **argv)
fi = fopen(argv[i], "rb");
if (!fi)
{
- fprintf(stderr, "hexdump: could not open input file\n");
+ fprintf(stderr, "fontdump: could not open input file '%s'\n", argv[i]);
return 1;
}