diff options
author | Karel Zak | 2017-05-18 11:39:34 +0200 |
---|---|---|
committer | Karel Zak | 2017-05-18 11:39:34 +0200 |
commit | 780ce22cdad01128139c1edfceb8f86338bf3dda (patch) | |
tree | bca21a46c58d6bf60ecaf59a4fa669c5a487d688 /sys-utils/zramctl.c | |
parent | tests: Fix UDF test output after changing UUID algorithm (diff) | |
download | kernel-qcow2-util-linux-780ce22cdad01128139c1edfceb8f86338bf3dda.tar.gz kernel-qcow2-util-linux-780ce22cdad01128139c1edfceb8f86338bf3dda.tar.xz kernel-qcow2-util-linux-780ce22cdad01128139c1edfceb8f86338bf3dda.zip |
misc: consolidate smartcols error messages
... just to keep translators happy
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/zramctl.c')
-rw-r--r-- | sys-utils/zramctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-utils/zramctl.c b/sys-utils/zramctl.c index b5fc08edf..4ae4742dd 100644 --- a/sys-utils/zramctl.c +++ b/sys-utils/zramctl.c @@ -406,7 +406,7 @@ static void fill_table_row(struct libscols_table *tb, struct zram *z) ln = scols_table_new_line(tb, NULL); if (!ln) - err(EXIT_FAILURE, _("failed to initialize output line")); + err(EXIT_FAILURE, _("failed to allocate output line")); for (i = 0; i < (size_t) ncolumns; i++) { char *str = NULL; @@ -471,8 +471,8 @@ static void fill_table_row(struct libscols_table *tb, struct zram *z) str = get_mm_stat(z, MM_NUM_MIGRATED, inbytes); break; } - if (str) - scols_line_refer_data(ln, i, str); + if (str && scols_line_refer_data(ln, i, str)) + err(EXIT_FAILURE, _("failed to add output data")) } } @@ -485,7 +485,7 @@ static void status(struct zram *z) tb = scols_new_table(); if (!tb) - err(EXIT_FAILURE, _("failed to initialize output table")); + err(EXIT_FAILURE, _("failed to allocate output table")); scols_table_enable_raw(tb, raw); scols_table_enable_noheadings(tb, no_headings); |