From 0c97c9d43707da745fe2bc62ab2a69497ceaf666 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 1 Oct 2007 11:58:38 +0000 Subject: 'simple' error message functions by Loic Grenie . 263 bytes saved. --- miscutils/chrt.c | 2 +- miscutils/mountpoint.c | 2 +- miscutils/setsid.c | 2 +- miscutils/taskset.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'miscutils') diff --git a/miscutils/chrt.c b/miscutils/chrt.c index 98399ce..1f5465c 100644 --- a/miscutils/chrt.c +++ b/miscutils/chrt.c @@ -115,7 +115,7 @@ print_rt_info: } ++argv; BB_EXECVP(*argv, argv); - bb_perror_msg_and_die("%s", *argv); + bb_simple_perror_msg_and_die(*argv); } #undef OPT_p #undef OPT_r diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c index 0f1e155..376bd95 100644 --- a/miscutils/mountpoint.c +++ b/miscutils/mountpoint.c @@ -61,6 +61,6 @@ int mountpoint_main(int argc, char **argv) } } if (!(opt & OPT_q)) - bb_perror_msg("%s", arg); + bb_simple_perror_msg(arg); return EXIT_FAILURE; } diff --git a/miscutils/setsid.c b/miscutils/setsid.c index a976fe9..8d738ed 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c @@ -29,5 +29,5 @@ int setsid_main(int argc, char **argv) setsid(); /* no error possible */ BB_EXECVP(argv[1], argv + 1); - bb_perror_msg_and_die("%s", argv[1]); + bb_simple_perror_msg_and_die(argv[1]); } diff --git a/miscutils/taskset.c b/miscutils/taskset.c index 0c4bad7..3c117da 100644 --- a/miscutils/taskset.c +++ b/miscutils/taskset.c @@ -92,7 +92,7 @@ int taskset_main(int argc, char** argv) } ++argv; BB_EXECVP(*argv, argv); - bb_perror_msg_and_die("%s", *argv); + bb_simple_perror_msg_and_die(*argv); } #undef OPT_p #undef TASKSET_PRINTF_MASK -- cgit v1.1