diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2008-03-04 04:42:33 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2008-03-04 04:42:33 +0000 |
commit | 44f78b3ed3515c70479a1089b18d21366f8638e0 (patch) | |
tree | a929c84c9395cf1c0b4a4c446e195140659709c0 /pxl | |
parent | f18defce26794d042022b058adce8aa403c07959 (diff) |
Remove diagnostic relative position printout, this was wrong
frequently because the current buffer pointer does not necessarily
point to the read stream, it can point to a saved buffer, in which
case the calculated position is bogus.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@3040 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pxl')
-rw-r--r-- | pxl/pxparse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pxl/pxparse.c b/pxl/pxparse.c index 100563146..6ffb10d39 100644 --- a/pxl/pxparse.c +++ b/pxl/pxparse.c @@ -423,16 +423,16 @@ top: if ( st->data_left ) if ( left < 5 ) goto x; /* can't look ahead */ st->data_left = get_uint32(st, p + 2); - if_debug3('i', "pos=%8ld tag= 0x%2x data, length %u\n", - (long)(p - pr->ptr), p[1], st->data_left); + if_debug2('i', "tag= 0x%2x data, length %u\n", + p[1], st->data_left); p += 5; goto top; case pxt_dataLengthByte: if ( left < 2 ) goto x; /* can't look ahead */ st->data_left = p[2]; - if_debug3('i', "pos=%8ld tag= 0x%2x data, length %u\n", - (long)(p - pr->ptr), p[1], st->data_left); + if_debug2('i', "tag= 0x%2x data, length %u\n", + p[1], st->data_left); p += 2; goto top; default: @@ -450,7 +450,7 @@ top: if ( st->data_left ) { int count; #ifdef DEBUG if ( gs_debug_c('i') ) - { dprintf2("pos=%8ld tag= 0x%02x ", (long)(p - pr->ptr), tag); + { dprintf1("tag= 0x%02x ", tag); if ( tag == pxt_attr_ubyte || tag == pxt_attr_uint16 ) { px_attribute_t attr = (tag == pxt_attr_ubyte ? p[2] : get_uint16(st, p + 2)); |