Skip to content

Commit

Permalink
lsblk: print zero rather than empty SIZE
Browse files Browse the repository at this point in the history
Addresses: #1118
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Nov 13, 2020
1 parent 4286721 commit c8d97a2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions misc-utils/lsblk.c
Expand Up @@ -906,8 +906,6 @@ static char *device_get_data(
ul_path_read_string(dev->sysfs, &str, "device/vendor");
break;
case COL_SIZE:
if (!dev->size)
break;
if (lsblk->bytes)
xasprintf(&str, "%ju", dev->size);
else
Expand Down

0 comments on commit c8d97a2

Please sign in to comment.