From: Karel Zak Date: Tue, 22 Jul 2014 10:29:38 +0000 (+0200) Subject: swapon: don't print errors as data in smartcols table X-Git-Tag: v2.26-rc1~597 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3c74d88e126552b457e964bfa288f39df8dd81a;p=thirdparty%2Futil-linux.git swapon: don't print errors as data in smartcols table Signed-off-by: Karel Zak --- diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 02cad024a5..193fcbf43f 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;