]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: don't print errors as data in smartcols table
authorKarel Zak <kzak@redhat.com>
Tue, 22 Jul 2014 10:29:38 +0000 (12:29 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Jul 2014 10:29:38 +0000 (12:29 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/swapon.c

index 02cad024a51d11d934804e6ecefe658f894b7648..193fcbf43fdb02932f7973436937f5793225378f 100644 (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;