'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.
263 bytes saved.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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]);
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user