'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

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

View File

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

View File

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

View File

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