diff options
author | Karel Zak | 2014-10-23 13:44:00 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-23 13:44:00 +0200 |
commit | 3635f53ca2587bea133d3f56022ef42c88797f97 (patch) | |
tree | b38c023c69b016e98ad40f9a8839d84d4769470b /include/debug.h | |
parent | fdisk: add section about sizes to the man page (diff) | |
download | kernel-qcow2-util-linux-3635f53ca2587bea133d3f56022ef42c88797f97.tar.gz kernel-qcow2-util-linux-3635f53ca2587bea133d3f56022ef42c88797f97.tar.xz kernel-qcow2-util-linux-3635f53ca2587bea133d3f56022ef42c88797f97.zip |
whereis: cleanup debug stuff, fix argv[] usage
* use debug stuff from include/debug.h and make whereis(1) sensitive
to WHEREIS_DEBUG=0xffff mask
* fix problem with argv[] usage
# whereis -b -m -M /usr/share/man/man1 -B /usr/bin -f gcc
bin: /usr/local/bin
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz
the code ignores "-B" and /usr/bin is interpreted as search pattern,
expected result is:
# whereis -b -m -M /usr/share/man/man1 -B /usr/bin -f gcc
gcc: /usr/share/man/man1/gcc.1.gz /usr/bin/gcc
Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765306
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/debug.h')
-rw-r--r-- | include/debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/debug.h b/include/debug.h index 4dfc1eb32..436ff24bc 100644 --- a/include/debug.h +++ b/include/debug.h @@ -57,7 +57,7 @@ struct dbg_mask { char *mname; int val; }; lib ## _debug_mask = mask; \ lib ## _debug_mask |= pref ## INIT; \ if (lib ## _debug_mask != pref ## INIT) { \ - __UL_DBG(lib, pref, INIT, ul_debug("library debug mask: 0x%04x", \ + __UL_DBG(lib, pref, INIT, ul_debug("debug mask: 0x%04x", \ lib ## _debug_mask)); \ } \ } while (0) |