'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

@@ -67,7 +67,7 @@ static unsigned long du(const char *filename)
unsigned long sum;
if (lstat(filename, &statbuf) != 0) {
bb_perror_msg("%s", filename);
bb_simple_perror_msg(filename);
G.status = EXIT_FAILURE;
return 0;
}
@@ -85,7 +85,7 @@ static unsigned long du(const char *filename)
if (S_ISLNK(statbuf.st_mode)) {
if (G.slink_depth > G.du_depth) { /* -H or -L */
if (stat(filename, &statbuf) != 0) {
bb_perror_msg("%s", filename);
bb_simple_perror_msg(filename);
G.status = EXIT_FAILURE;
return 0;
}