const char *type = mnt_fs_get_fstype(fs);
const char *src = mnt_fs_get_source(fs);
const char *optstr = mnt_fs_get_options(fs);
- char *xsrc;
+ char *xsrc = NULL;
if (type && pattern && !mnt_match_fstype(type, pattern))
continue;
- xsrc = mnt_pretty_path(src, cache);
- printf ("%s on %s", xsrc, mnt_fs_get_target(fs));
+ if (!mnt_fs_is_pseudofs(fs))
+ xsrc = mnt_pretty_path(src, cache);
+ printf ("%s on %s", xsrc ? xsrc : src, mnt_fs_get_target(fs));
if (type)
printf (" type %s", type);
if (optstr)