From 780ce22cdad01128139c1edfceb8f86338bf3dda Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 18 May 2017 11:39:34 +0200 Subject: misc: consolidate smartcols error messages ... just to keep translators happy Signed-off-by: Karel Zak --- sys-utils/zramctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys-utils/zramctl.c') 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); -- cgit v1.2.3-55-g7522