diff options
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/losetup.c | 2 | ||||
-rw-r--r-- | sys-utils/lscpu.c | 5 | ||||
-rw-r--r-- | sys-utils/prlimit.c | 2 | ||||
-rw-r--r-- | sys-utils/swapon.c | 2 | ||||
-rw-r--r-- | sys-utils/wdctl.c | 2 |
5 files changed, 12 insertions, 1 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 6ad94be4c..b1fda7368 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -297,6 +297,8 @@ static int show_table(struct loopdev_cxt *lc, struct libscols_line *ln; int i, rc = 0; + scols_init_debug(0); + if (!(tb = scols_new_table())) err(EXIT_FAILURE, _("failed to initialize output table")); scols_table_enable_raw(tb, raw); diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 3b3faf81a..6b128b140 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -1395,8 +1395,11 @@ print_readable(struct lscpu_desc *desc, int cols[], int ncols, int i; char buf[BUFSIZ]; const char *data; - struct libscols_table *table = scols_new_table(); + struct libscols_table *table; + scols_init_debug(0); + + table = scols_new_table(); if (!table) err(EXIT_FAILURE, _("failed to initialize output table")); diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c index d37ec651e..826507ce3 100644 --- a/sys-utils/prlimit.c +++ b/sys-utils/prlimit.c @@ -618,6 +618,8 @@ int main(int argc, char **argv) columns[ncolumns++] = COL_UNITS; } + scols_init_debug(0); + if (list_empty(&lims)) { /* default is to print all resources */ size_t n; diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 4f98500ef..8c36b2c85 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -236,6 +236,8 @@ static int show_table(int bytes) if (!itr) err(EXIT_FAILURE, _("failed to initialize libmount iterator")); + scols_init_debug(0); + table = scols_new_table(); if (!table) err(EXIT_FAILURE, _("failed to initialize output table")); diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c index d63a110e3..137649a3d 100644 --- a/sys-utils/wdctl.c +++ b/sys-utils/wdctl.c @@ -250,6 +250,8 @@ static int show_flags(struct wdinfo *wd, uint32_t wanted) struct libscols_table *table; uint32_t flags; + scols_init_debug(0); + /* create output table */ table = scols_new_table(); if (!table) { |