diff options
author | Karel Zak | 2014-06-06 13:47:06 +0200 |
---|---|---|
committer | Karel Zak | 2014-06-06 13:47:06 +0200 |
commit | 710ed55dcde95cad66a8f9bd2a7ecd223f14d653 (patch) | |
tree | 2509399f5d4b47bac3f1a9abc366e5a344ccd075 /sys-utils | |
parent | mount: add btrfs to mount.8 (diff) | |
download | kernel-qcow2-util-linux-710ed55dcde95cad66a8f9bd2a7ecd223f14d653.tar.gz kernel-qcow2-util-linux-710ed55dcde95cad66a8f9bd2a7ecd223f14d653.tar.xz kernel-qcow2-util-linux-710ed55dcde95cad66a8f9bd2a7ecd223f14d653.zip |
libsmartcols: add debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
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) { |