* [PATCH][TRIVIAL] btrfs-progs: correct error message in btrfs_scan_one_dir
@ 2009-10-31 20:55 Andi Drebes
0 siblings, 0 replies; only message in thread
From: Andi Drebes @ 2009-10-31 20:55 UTC (permalink / raw)
To: linux-btrfs; +Cc: Chris Mason
When opendir() fails on the directory to be scanned, the error message should mention the correct directory name instead of "/sys/block".
Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
---
diff --git a/utils.c b/utils.c
index 2f4c6e1..5c58071 100644
--- a/utils.c
+++ b/utils.c
@@ -694,7 +694,7 @@ again:
}
dirp = opendir(dirname);
if (!dirp) {
- fprintf(stderr, "Unable to open /sys/block for scanning\n");
+ fprintf(stderr, "Unable to open %s for scanning\n", dirname);
return -ENOENT;
}
while(1) {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-31 20:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-31 20:55 [PATCH][TRIVIAL] btrfs-progs: correct error message in btrfs_scan_one_dir Andi Drebes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox