'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.

263 bytes saved.
This commit is contained in:
Denis Vlasenko
2007-10-01 11:58:38 +00:00
parent d65ea39ffc
commit 0c97c9d437
50 changed files with 73 additions and 62 deletions

View File

@@ -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;
}

View File

@@ -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]);
}

View File

@@ -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;
}