diff options
author | Dan McGee <dan@archlinux.org> | 2011-10-17 15:28:57 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-17 15:28:57 +0200 |
commit | 842c4422eda231892d4bce75d8e315eb652533b6 (patch) | |
tree | 13bb0d25acf303e4081a961335b4e1f4ce37e05e /src | |
parent | 020bdb4298cd1bc53df7ca4d911cda7aaa65329c (diff) | |
download | pacman-842c4422eda231892d4bce75d8e315eb652533b6.tar.gz pacman-842c4422eda231892d4bce75d8e315eb652533b6.tar.xz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/util.c | 3 |
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) { |