btrfs-progs: from troubleshooting point of view messages must be unique
authorAnand Jain <anand.jain@oracle.com>
Fri, 1 Mar 2013 10:10:01 +0000 (18:10 +0800)
committerDavid Sterba <dsterba@suse.cz>
Sun, 3 Mar 2013 16:34:33 +0000 (17:34 +0100)
-----
cmds-device.c:                  fprintf(stderr, "ERROR: unable to scan the device '%s' - %s\n",
utils.c:                fprintf(stderr, "ERROR: unable to scan the device '%s' - %s\n",
-----

Signed-off-by: Anand Jain <anand.jain@oracle.com>
utils.c

diff --git a/utils.c b/utils.c
index 1813dda..71da787 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -945,7 +945,7 @@ void btrfs_register_one_device(char *fname)
        ret = ioctl(fd, BTRFS_IOC_SCAN_DEV, &args);
        e = errno;
        if(ret<0){
-               fprintf(stderr, "ERROR: unable to scan the device '%s' - %s\n",
+               fprintf(stderr, "ERROR: device scan failed '%s' - %s\n",
                        fname, strerror(e));
        }
        close(fd);