aboutsummaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2013-01-06 17:52:00 +0100
committerPetr Machata <pmachata@redhat.com>2013-03-08 22:55:30 +0100
commit3717f290b3538f7a9fca534c0b96f513884c8745 (patch)
tree57d2d7e4714b1ea3326ce5e15ed3b0700777abfe /proc.c
parentaf1e603fa8afd1ed0f1819a984c57311efbc7f1f (diff)
downloadltrace-3717f290b3538f7a9fca534c0b96f513884c8745.tar.gz
Fix formatting of error messages in proc_add_library
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/proc.c b/proc.c
index 77f20ec..23b772d 100644
--- a/proc.c
+++ b/proc.c
@@ -864,7 +864,8 @@ proc_add_library(struct process *proc, struct library *lib)
while ((libsym = library_each_symbol(lib, libsym,
cb_breakpoint_for_symbol,
proc)) != NULL)
- fprintf(stderr, "Couldn't insert breakpoint for %s to %d: %s.",
+ fprintf(stderr,
+ "Couldn't insert breakpoint for %s to %d: %s.\n",
libsym->name, proc->pid, strerror(errno));
/* Look through export list of the new library and compare it
@@ -874,7 +875,7 @@ proc_add_library(struct process *proc, struct library *lib)
while ((lib2 = proc_each_library(proc, lib2, activate_latent_in,
lib->exported_names)) != NULL)
fprintf(stderr,
- "Couldn't activate latent symbols for %s in %d: %s.",
+ "Couldn't activate latent symbols for %s in %d: %s.\n",
libsym->name, proc->pid, strerror(errno));
}