From: Karel Zak Date: Fri, 24 Dec 2010 00:10:42 +0000 (+0100) Subject: libblkid: support LIBBLKID_DEBUG= env. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=136f38bc2964f53201c0a1b3ee2b6be67937c841;p=util-linux libblkid: support LIBBLKID_DEBUG= env. Signed-off-by: Karel Zak --- 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