swapon: don't print errors as data in smartcols table

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2014-07-22 12:29:38 +02:00
parent 7c1fa4691f
commit a3c74d88e1
1 changed files with 0 additions and 4 deletions

View File

@ -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;