From da8d75217032da6073ed42c25cc178fd76345a44 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 20 Jan 2007 18:13:23 +0000 Subject: embellish bad magic number error message git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@209 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libpam.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libpam.c') diff --git a/lib/libpam.c b/lib/libpam.c index c9ab4bc9..362c1159 100644 --- a/lib/libpam.c +++ b/lib/libpam.c @@ -792,7 +792,8 @@ pnm_readpaminit(FILE * const file, break; default: - pm_error("bad magic number - not a PAM, PPM, PGM, or PBM file"); + pm_error("bad magic number 0x%x - not a PAM, PPM, PGM, or PBM file", + pamP->format); } pamP->bytes_per_sample = pnm_bytespersample(pamP->maxval); -- cgit 1.4.1