Whamcloud - gitweb
debugfs: Print the progname instead of argv[0] in error message
authorManish Katiyar <mkatiyar@gmail.com>
Sat, 23 Aug 2008 16:58:05 +0000 (22:28 +0530)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 24 Aug 2008 21:29:33 +0000 (17:29 -0400)
Trivial fix to print the progname instead of argv[0] in error message.

Signed-off-by: "Manish Katiyar" <mkatiyar@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c

index ab40de8..935df81 100644 (file)
@@ -1514,7 +1514,7 @@ try_again:
        if (retval == EXT2_ET_DIR_NO_SPACE) {
                retval = ext2fs_expand_dir(current_fs, parent);
                if (retval) {
-                       com_err("argv[0]", retval, "while expanding directory");
+                       com_err(argv[0], retval, "while expanding directory");
                        return;
                }
                goto try_again;