-/* $Id: recgrs.c,v 1.75 2003-03-08 14:27:58 pop Exp $
+/* $Id: recgrs.c,v 1.76 2003-04-24 19:34:19 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
Index Data Aps
tlist->att->name, tlist->att->value,
tlist->source);
printf (" data=\"");
- for (i = 0; i<wrd->length && i < 8; i++)
+ for (i = 0; i<wrd->length && i < 40; i++)
fputc (wrd->string[i], stdout);
fputc ('"', stdout);
- if (wrd->length > 8)
+ if (wrd->length > 40)
printf (" ...");
fputc ('\n', stdout);
}
-/* $Id: regxread.c,v 1.46 2002-09-24 19:41:00 adam Exp $
- Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
+/* $Id: regxread.c,v 1.47 2003-04-24 19:34:20 adam Exp $
+ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
Index Data Aps
This file is part of the Zebra server.
return ;
#if REGX_DEBUG
if (elen > 40)
- logf (LOG_LOG, "data (%d bytes) %.15s ... %.*s", elen,
+ logf (LOG_LOG, "data(%d bytes) %.15s ... %.*s", elen,
ebuf, 15, ebuf + elen-15);
+ else if (elen == 1 && ebuf[0] == '\n')
+ {
+ logf (LOG_LOG, "data(new line)");
+ assert(0);
+ }
else if (elen > 0)
- logf (LOG_LOG, "data (%d bytes) %.*s", elen, elen, ebuf);
+ logf (LOG_LOG, "data(%d bytes) %.*s", elen, elen, ebuf);
else
- logf (LOG_LOG, "data (%d bytes)", elen);
+ logf (LOG_LOG, "data(%d bytes)", elen);
#endif
if (spec->d1_level <= 1)
ttype[type_len] = '\0';
#if REGX_DEBUG
- logf (LOG_LOG, "variant begin %s %s (%d)", tclass, ttype,
+ logf (LOG_LOG, "variant begin(%s,%s,%d)", tclass, ttype,
spec->d1_level);
#endif
}
#if REGX_DEBUG
- logf (LOG_LOG, "variant node (%d)", spec->d1_level);
+ logf (LOG_LOG, "variant node(%d)", spec->d1_level);
#endif
parent = spec->d1_stack[spec->d1_level-1];
res = data1_mk_node2 (spec->dh, spec->m, DATA1N_variant, parent);
tagDataRelease (spec);
#if REGX_DEBUG
- logf (LOG_LOG, "begin tag %s (%d)", tag, spec->d1_level);
+ logf (LOG_LOG, "begin tag(%.*s, %d)", len, tag, spec->d1_level);
#endif
spec->d1_stack[spec->d1_level] = data1_mk_tag_n (
break;
}
#if REGX_DEBUG
- logf (LOG_LOG, "end tag (%d)", spec->d1_level);
+ logf (LOG_LOG, "end tag(%d)", spec->d1_level);
#endif
}