aboutsummaryrefslogtreecommitdiff
path: root/pathtrace.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2015-05-25 22:51:19 +0000
committerDmitry V. Levin <ldv@altlinux.org>2015-05-25 23:31:31 +0000
commit6c8ef051f726138b07f6d1ac50c32ffcd6f7996a (patch)
tree2312d112c4e9f60ac8f1560e5a606a59f05488e1 /pathtrace.c
parentdf3899149e57b872af545ec2e83563f5b902d788 (diff)
downloadstrace-6c8ef051f726138b07f6d1ac50c32ffcd6f7996a.tar.gz
Consistently use error_msg instead of fprintf(stderr)
* linux/alpha/get_scno.c: Use error_msg. * linux/arm/get_scno.c: Likewise. * linux/mips/get_scno.c: Likewise. * linux/sh/get_scno.c: Likewise. * linux/x86_64/get_scno.c: Likewise. * exit.c (sys_exit): Likewise. * pathtrace.c (pathtrace_select, pathtrace_match): Likewise. * strace.c (alloctcb, droptcb, detach, startup_attach, test_ptrace_seize, init, cleanup, print_debug_info, maybe_allocate_tcb, startup_tcb, trace): Likewise. * syscall.c (update_personality, trace_syscall_exiting, get_scno): Likewise. * unwind.c (DPRINTF): Likewise. * tests/bexecve.test: Update patterns. * tests/detach-stopped.test: Likewise.
Diffstat (limited to 'pathtrace.c')
-rw-r--r--pathtrace.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pathtrace.c b/pathtrace.c
index 894dd5c9..6b3a2090 100644
--- a/pathtrace.c
+++ b/pathtrace.c
@@ -141,8 +141,7 @@ pathtrace_select(const char *path)
return;
}
- fprintf(stderr, "Requested path '%s' resolved into '%s'\n",
- path, rpath);
+ error_msg("Requested path '%s' resolved into '%s'", path, rpath);
storepath(rpath);
}
@@ -271,7 +270,7 @@ pathtrace_match(struct tcb *tcp)
if (umoven(tcp, tcp->u_arg[0], sizeof oldargs,
oldargs) < 0)
{
- fprintf(stderr, "umoven() failed\n");
+ error_msg("umoven() failed");
return 0;
}
args = oldargs;
@@ -292,7 +291,7 @@ pathtrace_match(struct tcb *tcp)
if (args[i] == 0)
continue;
if (umoven(tcp, args[i], fdsize, fds) < 0) {
- fprintf(stderr, "umoven() failed\n");
+ error_msg("umoven() failed");
continue;
}
for (j = 0;; j++) {