From 136f38bc2964f53201c0a1b3ee2b6be67937c841 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 24 Dec 2010 01:10:42 +0100 Subject: [PATCH] libblkid: support LIBBLKID_DEBUG= env. Signed-off-by: Karel Zak --- shlibs/blkid/src/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shlibs/blkid/src/cache.c b/shlibs/blkid/src/cache.c index 6f53dc99..feec6ddf 100644 --- a/shlibs/blkid/src/cache.c +++ b/shlibs/blkid/src/cache.c @@ -79,8 +79,10 @@ void blkid_init_debug(int mask) if (!mask) { - char *dstr = getenv("BLKID_DEBUG"); + char *dstr = getenv("LIBBLKID_DEBUG"); + if (!dstr) + dstr = getenv("BLKID_DEBUG"); /* for backward compatibility */ if (dstr) blkid_debug_mask = strtoul(dstr, 0, 0); } else -- 2.39.5