linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: from troubleshooting point of view messages must be unique
@ 2013-03-01 10:10 Anand Jain
  2013-03-01 10:10 ` [PATCH] btrfs-progs: usage should match what is coded Anand Jain
  0 siblings, 1 reply; 5+ messages in thread
From: Anand Jain @ 2013-03-01 10:10 UTC (permalink / raw)
  To: linux-btrfs

>From the below, we won't readily know from where the error is generated
-----
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils.c b/utils.c
index 1813dda..71da787 100644
--- 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);
-- 
1.8.1.227.g44fe835


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-03 16:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-01 10:10 [PATCH] btrfs-progs: from troubleshooting point of view messages must be unique Anand Jain
2013-03-01 10:10 ` [PATCH] btrfs-progs: usage should match what is coded Anand Jain
2013-03-01 17:47   ` Eric Sandeen
2013-03-01 18:05     ` Hugo Mills
2013-03-03 16:33       ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).