btrfs-progs: improve troubleshooting avoid duplicate error strings
authorAnand Jain <anand.jain@oracle.com>
Mon, 13 Apr 2015 12:37:01 +0000 (20:37 +0800)
committerDavid Sterba <dsterba@suse.cz>
Tue, 14 Apr 2015 13:19:04 +0000 (15:19 +0200)
commit32ca2fa502c0a00a7dc40adbdae2e7b7765e6d63
tree19d65b118136d99133d438e5e537148913fded38
parent672076d4b73577898e3768fddd95af178a964c47
btrfs-progs: improve troubleshooting avoid duplicate error strings

my troubleshooting experience says have unique error string per module.

In the below eg, its one additional step to know error line,

cat -n cmds-device.c | egrep "error removing the device"
   185 "ERROR: error removing the device '%s' - %s\n",
   190 "ERROR: error removing the device '%s' - %s\n",

which is completely avoidable.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
[merged the two messages into one]
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-device.c