/* kill a stream and set the termination flags to <why> (one of SF_ERR_*) */
void stream_shutdown(struct stream *stream, int why);
-void stream_dump(struct buffer *buf, const struct stream *s, const char *pfx, char eol);
+void stream_dump(struct buffer *buf, const struct stream *s, const char *pfx);
void stream_dump_and_crash(enum obj_type *obj, int rate);
struct ist stream_generate_unique_id(struct stream *strm, struct list *format);
s = sc_strm(((struct stconn *)task->context));
if (s)
- stream_dump(buf, s, pfx, '\n');
+ stream_dump(buf, s, pfx);
#ifdef USE_LUA
hlua = NULL;
* preliminary be prepared by its caller, with each line prepended by prefix
* <pfx>, and each line terminated by character <eol>.
*/
-void stream_dump(struct buffer *buf, const struct stream *s, const char *pfx, char eol)
+void stream_dump(struct buffer *buf, const struct stream *s, const char *pfx)
{
const struct stconn *scf, *scb;
const struct connection *cof, *cob;
const char *dst = "unknown";
char pn[INET6_ADDRSTRLEN];
const struct channel *req, *res;
+ char eol = '\n';
if (!s) {
chunk_appendf(buf, "%sstrm=%p%c", pfx, s, eol);
}
chunk_reset(&trash);
- stream_dump(&trash, s, "", ' ');
+ stream_dump(&trash, s, " ");
- chunk_appendf(&trash, "filters={");
+ chunk_appendf(&trash, " filters={");
if (HAS_FILTERS(s)) {
struct filter *filter;
memprintf(&msg,
"A bogus %s [%p] is spinning at %d calls per second and refuses to die, "
- "aborting now! Please report this error to developers "
- "[%s]\n",
+ "aborting now! Please report this error to developers:\n"
+ "%s\n",
obj_type_name(obj), ptr, rate, trash.area);
ha_alert("%s", msg);