mkfs_ext2: reuse string
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 18 Jun 2010 09:49:44 +0000 (11:49 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 18 Jun 2010 09:49:44 +0000 (11:49 +0200)
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>
util-linux/mkfs_ext2.c

index 388bd7b8807328040e8ebba3e8014f20945c2170..1748a475c323c1ad56c0e85fc10e858d6624b394 100644 (file)
@@ -220,7 +220,7 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv)
        xmove_fd(xopen(argv[0], O_WRONLY), fd);
        fstat(fd, &st);
        if (!S_ISBLK(st.st_mode) && !(option_mask32 & OPT_F))
-               bb_error_msg_and_die("not a block device");
+               bb_error_msg_and_die("%s: not a block device", argv[0]);
 
        // check if it is mounted
        // N.B. what if we format a file? find_mount_point will return false negative since