summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-17 08:28:57 -0500
committerDan McGee <dan@archlinux.org>2011-10-17 08:28:57 -0500
commit842c4422eda231892d4bce75d8e315eb652533b6 (patch)
tree13bb0d25acf303e4081a961335b4e1f4ce37e05e
parent020bdb4298cd1bc53df7ca4d911cda7aaa65329c (diff)
Table display: print message with warning: prefix
Use the normal error functions here rather than a bare fprintf(). Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--src/pacman/util.c3
1 files changed, 2 insertions, 1 deletions
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) {