From 842c4422eda231892d4bce75d8e315eb652533b6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 17 Oct 2011 08:28:57 -0500 Subject: Table display: print message with warning: prefix Use the normal error functions here rather than a bare fprintf(). Signed-off-by: Dan McGee --- src/pacman/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pacman') diff --git a/src/pacman/util.c b/src/pacman/util.c index 24ac782b..60e2914d 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -585,7 +585,8 @@ int table_display(const char *title, const alpm_list_t *header, totalwidth = table_calc_widths(header, rows, totalcols, &widths); /* return -1 if terminal is not wide enough */ if(totalwidth > getcols()) { - fprintf(stderr, _("insufficient columns available for table display\n")); + pm_fprintf(stderr, ALPM_LOG_WARNING, + _("insufficient columns available for table display\n")); return -1; } if(!totalwidth || !widths) { -- cgit v1.2.3-70-g09d2