[PATCH 3/9] mount: print backingstore instead of dev_name
Sascha Hauer
s.hauer at pengutronix.de
Sun Sep 29 06:04:54 EDT 2013
When printing the devices on which a path is mounted the backingstore is
the interesting thing, not dev_name.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
commands/mount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/mount.c b/commands/mount.c
index be26af8..595145a 100644
--- a/commands/mount.c
+++ b/commands/mount.c
@@ -39,7 +39,7 @@ static int do_mount(int argc, char *argv[])
if (argc == 1) {
for_each_fs_device(fsdev) {
printf("%s on %s type %s\n",
- fsdev->parent_device ? dev_name(fsdev->parent_device) : "none",
+ fsdev->backingstore ? fsdev->backingstore : "none",
fsdev->path,
fsdev->dev.name);
}
--
1.8.4.rc3
More information about the barebox
mailing list