summaryrefslogtreecommitdiffstats
path: root/commands/mount.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-09-27 22:50:36 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-29 12:11:14 +0200
commit00d996c94208c8e2736f5faa6d7f6e17f99061a0 (patch)
tree257677ec2006d4f1dff216121864e2e52c5d5089 /commands/mount.c
parentecb3aaa23b09c41f2ac8364f5ca72779467762e3 (diff)
downloadbarebox-00d996c94208c8e2736f5faa6d7f6e17f99061a0.tar.gz
barebox-00d996c94208c8e2736f5faa6d7f6e17f99061a0.tar.xz
mount: print backingstore instead of dev_name
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@pengutronix.de>
Diffstat (limited to 'commands/mount.c')
-rw-r--r--commands/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/mount.c b/commands/mount.c
index be26af84ab..595145a130 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);
}