diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-08 11:54:10 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-08 11:54:10 +0100 |
commit | 4c65c44478f1591d96cda425d78451334fe1d401 (patch) | |
tree | 9e2f9b7d7a1b00b42e6eb1c1ed55d0d37394156b /count.c | |
parent | aea4b876c842081829b5174f5d07331e2bccf6a6 (diff) | |
download | strace-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); } } |