9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2013-09-27 22:50:36 +02:00
parent ecb3aaa23b
commit 00d996c942
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}