summaryrefslogtreecommitdiff
path: root/count.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-03-08 11:54:10 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-03-08 11:54:10 +0100
commit4c65c44478f1591d96cda425d78451334fe1d401 (patch)
tree9e2f9b7d7a1b00b42e6eb1c1ed55d0d37394156b /count.c
parentaea4b876c842081829b5174f5d07331e2bccf6a6 (diff)
downloadstrace-4c65c44478f1591d96cda425d78451334fe1d401.tar.gz
Trivial tweaks to error messages
* strace.c (test_ptrace_setoptions_followfork): Use kill_save_errno instead of kill. (trace): Use perror_msg instead of perror. * count.c (set_sortby): Use error_msg_and_die instead of fprintf. * syscall.c (qualify): Likewise. * util.c (ptrace_restart): Expand error message. (umoven): Likewise. (umovestr): Likewise. (upeek): Use perror_msg instead of sprintf + perror. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'count.c')
-rw-r--r--count.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/count.c b/count.c
index c53274750..673c35404 100644
--- a/count.c
+++ b/count.c
@@ -130,8 +130,7 @@ set_sortby(const char *sortby)
else if (strcmp(sortby, "nothing") == 0)
sortfun = NULL;
else {
- fprintf(stderr, "invalid sortby: `%s'\n", sortby);
- exit(1);
+ error_msg_and_die("invalid sortby: '%s'", sortby);
}
}