diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-03 18:47:56 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-03 18:47:56 +0000 |
commit | 9604e1b8fc1e6c64fb977791d5f2819389a37377 (patch) | |
tree | 072ba5f8e13dbbc380147c79468ed77fa8e1ae3b /shell | |
parent | 787a492f23bbd567fb9bf2486ce9994bd19ebec2 (diff) | |
download | busybox-w32-9604e1b8fc1e6c64fb977791d5f2819389a37377.tar.gz busybox-w32-9604e1b8fc1e6c64fb977791d5f2819389a37377.tar.bz2 busybox-w32-9604e1b8fc1e6c64fb977791d5f2819389a37377.zip |
modprobe: emit "can't open 'modules.dep': (errno)" instead of "module not found"
*: s/can't open %s/can't open '%s'/, it's better to use same string.
function old new delta
do_modprobe 588 601 +13
config_file_action 339 345 +6
modprobe_main 565 570 +5
unable_to_open 14 16 +2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 26/0) Total: 26 bytes
text data bss dec hex filename
816800 476 7892 825168 c9750 busybox_old
816812 476 7892 825180 c975c busybox_unstripped
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 3abca75fe..b33351674 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -4540,7 +4540,7 @@ forkchild(struct job *jp, /*union node *n,*/ int mode) | |||
4540 | if (jp->nprocs == 0) { | 4540 | if (jp->nprocs == 0) { |
4541 | close(0); | 4541 | close(0); |
4542 | if (open(bb_dev_null, O_RDONLY) != 0) | 4542 | if (open(bb_dev_null, O_RDONLY) != 0) |
4543 | ash_msg_and_raise_error("can't open %s", bb_dev_null); | 4543 | ash_msg_and_raise_error("can't open '%s'", bb_dev_null); |
4544 | } | 4544 | } |
4545 | } | 4545 | } |
4546 | if (!oldlvl) { | 4546 | if (!oldlvl) { |
@@ -9573,7 +9573,7 @@ setinputfile(const char *fname, int flags) | |||
9573 | if (fd < 0) { | 9573 | if (fd < 0) { |
9574 | if (flags & INPUT_NOFILE_OK) | 9574 | if (flags & INPUT_NOFILE_OK) |
9575 | goto out; | 9575 | goto out; |
9576 | ash_msg_and_raise_error("can't open %s", fname); | 9576 | ash_msg_and_raise_error("can't open '%s'", fname); |
9577 | } | 9577 | } |
9578 | if (fd < 10) { | 9578 | if (fd < 10) { |
9579 | fd2 = copyfd(fd, 10); | 9579 | fd2 = copyfd(fd, 10); |