summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/tab.c
diff options
context:
space:
mode:
authorKarel Zak2010-10-18 14:42:42 +0200
committerKarel Zak2011-01-03 12:28:45 +0100
commit5e31c2c8b652674c5302f066085019beb0e39d69 (patch)
treee38bd68ffea8110b2588e47005e90d499888d4a4 /shlibs/mount/src/tab.c
parentlibmount: cleanup fstab parser, improve mnt_tab errcb usage (diff)
downloadkernel-qcow2-util-linux-5e31c2c8b652674c5302f066085019beb0e39d69.tar.gz
kernel-qcow2-util-linux-5e31c2c8b652674c5302f066085019beb0e39d69.tar.xz
kernel-qcow2-util-linux-5e31c2c8b652674c5302f066085019beb0e39d69.zip
tests: add libmount tab_parse.c tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/tab.c')
-rw-r--r--shlibs/mount/src/tab.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/shlibs/mount/src/tab.c b/shlibs/mount/src/tab.c
index 97e4d1661..94683c192 100644
--- a/shlibs/mount/src/tab.c
+++ b/shlibs/mount/src/tab.c
@@ -806,16 +806,7 @@ int test_find(struct mtest *ts, int argc, char *argv[], int dr)
if (!fs)
fprintf(stderr, "%s: not found %s '%s'\n", file, find, what);
else {
- const char *s = mnt_fs_get_srcpath(fs);
- if (s)
- printf("%s", s);
- else {
- const char *tag, *val;
- mnt_fs_get_tag(fs, &tag, &val);
- printf("%s=%s", tag, val);
- }
- printf("|%s|%s\n", mnt_fs_get_target(fs),
- mnt_fs_get_optstr(fs));
+ mnt_fs_print_debug(fs, stdout);
rc = 0;
}
done: