Commit 473b37a3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure backtrace entries always have a newline.

parent 40a4f462
......@@ -606,8 +606,9 @@ pan_backtrace(struct vsb *vsb)
if (!unw_get_reg(&cursor, UNW_REG_SP, &sp))
VSB_printf(vsb, " sp=0x%lx", (long) sp);
if (!unw_get_proc_name(&cursor, fname, sizeof(fname), &offp))
VSB_printf(vsb, " <%s+0x%lx>\n",
VSB_printf(vsb, " <%s+0x%lx>",
fname[0] ? fname : "<unknown>", (long)offp);
VSB_putc(vsb, '\n');
}
VSB_indent(vsb, -2);
......
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