diff options
author | Karel Zak | 2016-01-12 16:00:57 +0100 |
---|---|---|
committer | Karel Zak | 2016-01-12 16:00:57 +0100 |
commit | 95fb0ead2bfe05f03f0dc37d0c48d701f85b345f (patch) | |
tree | 0591a08b2b6ef2deaa0192ccbef52c0c8809171a | |
parent | libsmartcols: allow to set data by reference to libscols_column (diff) | |
download | kernel-qcow2-util-linux-95fb0ead2bfe05f03f0dc37d0c48d701f85b345f.tar.gz kernel-qcow2-util-linux-95fb0ead2bfe05f03f0dc37d0c48d701f85b345f.tar.xz kernel-qcow2-util-linux-95fb0ead2bfe05f03f0dc37d0c48d701f85b345f.zip |
lsblk: use unsigned type for SIZE
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | misc-utils/lsblk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index fff1584d3..71f8bd6a7 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -1012,7 +1012,7 @@ static void set_scols_data(struct blkdev_cxt *cxt, int col, int id, struct libsc if (!cxt->size) break; if (lsblk->bytes) - xasprintf(&str, "%jd", cxt->size); + xasprintf(&str, "%ju", cxt->size); else str = size_to_human_string(SIZE_SUFFIX_1LETTER, cxt->size); if (sort) |