]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: use stderr for initial debug message
authorKarel Zak <kzak@redhat.com>
Wed, 23 May 2012 09:05:37 +0000 (11:05 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 23 May 2012 09:05:37 +0000 (11:05 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/init.c

index deaa14ce1aefc247bf902f4c478a07bd5953f223..58d4c1887869ccc6cc4df35e1c7b39bdf5d65570 100644 (file)
@@ -39,7 +39,7 @@ void mnt_init_debug(int mask)
                libmount_debug_mask = mask;
 
        if (libmount_debug_mask)
-               printf("libmount: debug mask set to 0x%04x.\n",
+               fprintf(stderr, "libmount: debug mask set to 0x%04x.\n",
                                libmount_debug_mask);
        libmount_debug_mask |= MNT_DEBUG_INIT;
 }