diff options
author | Karel Zak | 2014-07-22 12:29:38 +0200 |
---|---|---|
committer | Karel Zak | 2014-07-22 12:29:38 +0200 |
commit | a3c74d88e126552b457e964bfa288f39df8dd81a (patch) | |
tree | 11fae202e4ead8cbe4a2a70697f59c9f7e7c5ad2 /sys-utils | |
parent | swapon: don't use empty strings for smartcols output (diff) | |
download | kernel-qcow2-util-linux-a3c74d88e126552b457e964bfa288f39df8dd81a.tar.gz kernel-qcow2-util-linux-a3c74d88e126552b457e964bfa288f39df8dd81a.tar.xz kernel-qcow2-util-linux-a3c74d88e126552b457e964bfa288f39df8dd81a.zip |
swapon: don't print errors as data in smartcols table
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/swapon.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 02cad024a..193fcbf43 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -199,14 +199,10 @@ static void add_scols_line(struct libscols_table *table, struct libmnt_fs *fs, i case COL_UUID: if (pr && !blkid_probe_lookup_value(pr, "UUID", &data, NULL)) xasprintf(&str, "%s", data); - else if (!pr) - xasprintf(&str, _("read failed")); break; case COL_LABEL: if (pr && !blkid_probe_lookup_value(pr, "LABEL", &data, NULL)) xasprintf(&str, "%s", data); - else if (!pr) - xasprintf(&str, _("read failed")); break; default: break; |