]> granicus.if.org Git - strace/commitdiff
unwind: remove stray newline in error diagnostics
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 19 Apr 2018 18:03:58 +0000 (18:03 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 19 Apr 2018 18:03:58 +0000 (18:03 +0000)
* unwind-libdw.c (tcb_init): Do not pass trailing "\n" to error_msg
as the latter prints newline itself.

unwind-libdw.c

index 0c62dccc780dc391b55eff0c55610ce35943b20d..a2d4e294462176460fb7a418a0eea77e03ecee0c 100644 (file)
@@ -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;
        }