diff options
author | Karel Zak <kzak@redhat.com> | 2010-10-18 14:42:42 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2011-01-03 12:28:45 +0100 |
commit | 5e31c2c8b652674c5302f066085019beb0e39d69 (patch) | |
tree | e38bd68ffea8110b2588e47005e90d499888d4a4 /shlibs | |
parent | c3b0d5b37b64fb7c259f92e103fd73bdea6807fe (diff) | |
download | util-linux-old-5e31c2c8b652674c5302f066085019beb0e39d69.tar.gz |
tests: add libmount tab_parse.c tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs')
-rw-r--r-- | shlibs/mount/src/tab.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/shlibs/mount/src/tab.c b/shlibs/mount/src/tab.c index 97e4d166..94683c19 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: |