summaryrefslogtreecommitdiffstats
path: root/libmount
diff options
context:
space:
mode:
authorKarel Zak2012-11-26 12:19:02 +0100
committerKarel Zak2012-11-26 12:19:02 +0100
commit1e7f2e6cf46360143198a4662c0711cebf2ceab8 (patch)
treeae6ab815c013a7a16b91b16ec09a8eaf6ad527c0 /libmount
parentmount: (deprecated) drop --guess-fstype (diff)
downloadkernel-qcow2-util-linux-1e7f2e6cf46360143198a4662c0711cebf2ceab8.tar.gz
kernel-qcow2-util-linux-1e7f2e6cf46360143198a4662c0711cebf2ceab8.tar.xz
kernel-qcow2-util-linux-1e7f2e6cf46360143198a4662c0711cebf2ceab8.zip
libmount: make debug stuff more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount')
-rw-r--r--libmount/src/mountP.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h
index f28935d0d..04dd077a8 100644
--- a/libmount/src/mountP.h
+++ b/libmount/src/mountP.h
@@ -89,7 +89,8 @@ mnt_debug_h(void *handler, const char *mesg, ...)
{
va_list ap;
- fprintf(stderr, "[%p]: ", handler);
+ if (handler)
+ fprintf(stderr, "[%p]: ", handler);
va_start(ap, mesg);
vfprintf(stderr, mesg, ap);
va_end(ap);