summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.c
diff options
context:
space:
mode:
authorKarel Zak2014-06-06 13:47:06 +0200
committerKarel Zak2014-06-06 13:47:06 +0200
commit710ed55dcde95cad66a8f9bd2a7ecd223f14d653 (patch)
tree2509399f5d4b47bac3f1a9abc366e5a344ccd075 /sys-utils/lscpu.c
parentmount: add btrfs to mount.8 (diff)
downloadkernel-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/lscpu.c')
-rw-r--r--sys-utils/lscpu.c5
1 files changed, 4 insertions, 1 deletions
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"));