summaryrefslogtreecommitdiffstats
path: root/misc-utils/lsfd.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:22:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:22:57 +0000
commitce95875445c67808caa5d4fb0e6f80dbdaef0cb7 (patch)
tree6da8cbc66ef15086c9d295e4abe733b24818551e /misc-utils/lsfd.c
parentAdding upstream version 2.40. (diff)
downloadutil-linux-4bbfa975b02931d2db389907a671eb006656a1d4.tar.xz
util-linux-4bbfa975b02931d2db389907a671eb006656a1d4.zip
Adding upstream version 2.40.1.upstream/2.40.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'misc-utils/lsfd.c')
-rw-r--r--misc-utils/lsfd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c
index 771daef..98820ee 100644
--- a/misc-utils/lsfd.c
+++ b/misc-utils/lsfd.c
@@ -84,6 +84,14 @@ static int kcmp(pid_t pid1 __attribute__((__unused__)),
#include "lsfd.h"
+UL_DEBUG_DEFINE_MASK(lsfd);
+UL_DEBUG_DEFINE_MASKNAMES(lsfd) = UL_DEBUG_EMPTY_MASKNAMES;
+
+static void lsfd_init_debug(void)
+{
+ __UL_INIT_DEBUG_FROM_ENV(lsfd, LSFD_DEBUG_, 0, LSFD_DEBUG);
+}
+
/*
* /proc/$pid/mountinfo entries
*/
@@ -402,7 +410,7 @@ static const struct colinfo infos[] = {
N_("user of the process") },
[COL_XMODE] = { "XMODE",
0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING,
- N_("extended version of MDOE (rwxD[Ll]m)") },
+ N_("extended version of MODE (rwxD[Ll]m)") },
};
static const int default_columns[] = {
@@ -2271,6 +2279,8 @@ int main(int argc, char *argv[])
{ NULL, 0, NULL, 0 },
};
+ lsfd_init_debug();
+
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);