unwind: remove stray newline in error diagnostics
* unwind-libdw.c (tcb_init): Do not pass trailing "\n" to error_msg as the latter prints newline itself.
This commit is contained in:
parent
31ce194d23
commit
0635ea34a8
@ -49,7 +49,7 @@ tcb_init(struct tcb *tcp)
|
||||
|
||||
Dwfl *dwfl = dwfl_begin(&proc_callbacks);
|
||||
if (dwfl == NULL) {
|
||||
error_msg("dwfl_begin: %s\n", dwfl_errmsg(-1));
|
||||
error_msg("dwfl_begin: %s", dwfl_errmsg(-1));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@ -63,7 +63,7 @@ tcb_init(struct tcb *tcp)
|
||||
msg = strerror(r);
|
||||
|
||||
error_msg("dwfl_linux_proc_attach returned an error"
|
||||
" for process %d: %s\n", tcp->pid, msg);
|
||||
" for process %d: %s", tcp->pid, msg);
|
||||
dwfl_end(dwfl);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user