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. --- util-linux/mount.c | 2 +- util-linux/setarch.c | 2 +- util-linux/swaponoff.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'util-linux') diff --git a/util-linux/mount.c b/util-linux/mount.c index ea33001..10ada54 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -1655,7 +1655,7 @@ int mount_main(int argc, char **argv) && (i & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) ) { rc = mount("", argv[0], "", i, ""); - if (rc) bb_perror_msg_and_die("%s", argv[0]); + if (rc) bb_simple_perror_msg_and_die(argv[0]); goto clean_up; } diff --git a/util-linux/setarch.c b/util-linux/setarch.c index 2fb47f9..08294e5 100644 --- a/util-linux/setarch.c +++ b/util-linux/setarch.c @@ -44,5 +44,5 @@ retry: BB_EXECVP(argv[0], argv); } - bb_perror_msg_and_die("%s", argv[0]); + bb_simple_perror_msg_and_die(argv[0]); } diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 73fe105..db43aa5 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c @@ -31,7 +31,7 @@ static int swap_enable_disable(char *device) status = swapoff(device); if (status != 0) { - bb_perror_msg("%s", device); + bb_simple_perror_msg(device); return 1; } -- cgit v1.1