diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-06-18 11:49:44 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-06-18 11:49:44 +0200 |
commit | 5070124763a96d36b94b2a2e58df27ada3623cb8 (patch) | |
tree | 26285efcb43c42a58d627642094e3cc1014765ef /util-linux/mkfs_ext2.c | |
parent | cd5aa5c5dac87a51331b03ee08582e18f489a328 (diff) | |
download | busybox-w32-5070124763a96d36b94b2a2e58df27ada3623cb8.tar.gz busybox-w32-5070124763a96d36b94b2a2e58df27ada3623cb8.tar.bz2 busybox-w32-5070124763a96d36b94b2a2e58df27ada3623cb8.zip |
mkfs_ext2: reuse string
function old new delta
mkfs_ext2_main 2376 2378 +2
.rodata 135872 135848 -24
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 2/-24) Total: -22 bytes
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'util-linux/mkfs_ext2.c')
-rw-r--r-- | util-linux/mkfs_ext2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c index 388bd7b88..1748a475c 100644 --- a/util-linux/mkfs_ext2.c +++ b/util-linux/mkfs_ext2.c | |||
@@ -220,7 +220,7 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv) | |||
220 | xmove_fd(xopen(argv[0], O_WRONLY), fd); | 220 | xmove_fd(xopen(argv[0], O_WRONLY), fd); |
221 | fstat(fd, &st); | 221 | fstat(fd, &st); |
222 | if (!S_ISBLK(st.st_mode) && !(option_mask32 & OPT_F)) | 222 | if (!S_ISBLK(st.st_mode) && !(option_mask32 & OPT_F)) |
223 | bb_error_msg_and_die("not a block device"); | 223 | bb_error_msg_and_die("%s: not a block device", argv[0]); |
224 | 224 | ||
225 | // check if it is mounted | 225 | // check if it is mounted |
226 | // N.B. what if we format a file? find_mount_point will return false negative since | 226 | // N.B. what if we format a file? find_mount_point will return false negative since |