Commit 21335dcd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Don't abbreviate panic message output.

parent cbad9e18
...@@ -169,7 +169,7 @@ vtc_log(struct vtclog *vl, int lvl, const char *fmt, ...) ...@@ -169,7 +169,7 @@ vtc_log(struct vtclog *vl, int lvl, const char *fmt, ...)
void void
vtc_dump(struct vtclog *vl, int lvl, const char *pfx, const char *str, int len) vtc_dump(struct vtclog *vl, int lvl, const char *pfx, const char *str, int len)
{ {
int nl = 1; int nl = 1, olen;
unsigned l; unsigned l;
double tx; double tx;
...@@ -186,10 +186,11 @@ vtc_dump(struct vtclog *vl, int lvl, const char *pfx, const char *str, int len) ...@@ -186,10 +186,11 @@ vtc_dump(struct vtclog *vl, int lvl, const char *pfx, const char *str, int len)
VSB_printf(vl->vsb, "%s %-4s %4.1f %s(null)\n", VSB_printf(vl->vsb, "%s %-4s %4.1f %s(null)\n",
lead[lvl], vl->id, tx, pfx); lead[lvl], vl->id, tx, pfx);
else { else {
if (len == -1) olen = len;
if (len < 0)
len = strlen(str); len = strlen(str);
for (l = 0; l < len; l++, str++) { for (l = 0; l < len; l++, str++) {
if (l > 512) { if (l > 512 && olen != -2) {
VSB_printf(vl->vsb, "..."); VSB_printf(vl->vsb, "...");
break; break;
} }
......
...@@ -319,7 +319,7 @@ varnish_thread(void *priv) ...@@ -319,7 +319,7 @@ varnish_thread(void *priv)
if (i <= 0) if (i <= 0)
break; break;
buf[i] = '\0'; buf[i] = '\0';
vtc_dump(v->vl, 3, "debug", buf, -1); vtc_dump(v->vl, 3, "debug", buf, -2);
} }
return (NULL); return (NULL);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment