]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: use err.h in test
authorKarel Zak <kzak@redhat.com>
Tue, 14 May 2013 21:40:51 +0000 (23:40 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 May 2013 21:40:51 +0000 (23:40 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c

index 08e3951f990a01c758a2ce04cd69f3625936d5ea..85281d9c4c973b7601792a27465213b93c8ee93b 100644 (file)
@@ -2317,7 +2317,7 @@ int test_mount(struct libmnt_test *ts, int argc, char *argv[])
 
        rc = mnt_context_mount(cxt);
        if (rc)
-               printf("failed to mount: %m\n");
+               warn("failed to mount");
        else
                printf("successfully mounted\n");