From: Robert Spalek Date: Fri, 16 Jul 2004 09:07:50 +0000 (+0000) Subject: improved an error message to catch an error X-Git-Tag: holmes-import~944 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=1dc5993cee75f625c2b35bab8610576cfc078d02;p=libucw.git improved an error message to catch an error --- diff --git a/lib/obj2buck.c b/lib/obj2buck.c index a38051a5..367764a5 100644 --- a/lib/obj2buck.c +++ b/lib/obj2buck.c @@ -216,7 +216,7 @@ obj_write(struct fastbuf *f, struct odes *d) for (z = b->val; *z; z++) if (*z < ' ' && *z != '\t') { - log(L_ERROR, "obj_dump: Found non-ASCII characters (URL might be %s)", obj_find_aval(d, 'U')); + log(L_ERROR, "obj_dump: Found non-ASCII character %02x (URL might be %s) in %c%s", *z, obj_find_aval(d, 'U'), a->attr, b->val); *z = '?'; } ASSERT(z - b->val <= MAX_ATTR_SIZE-2);