From 07e46d2fc06d2296cca83e5c1a1c51cb9d0b34f8 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 14 Feb 2006 18:30:23 +0000 Subject: better use ERR than fprintf for error messages --- src/pacman/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pacman/util.c') diff --git a/src/pacman/util.c b/src/pacman/util.c index 757244a5..a8ad0059 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -38,6 +38,7 @@ #include "util.h" #include "list.h" #include "conf.h" +#include "log.h" extern int maxcols; extern config_t *config; @@ -195,7 +196,7 @@ int reg_match(char *string, char *pattern) regex_t reg; if(regcomp(®, pattern, REG_EXTENDED | REG_NOSUB | REG_ICASE) != 0) { - fprintf(stderr, "error: %s is not a valid regular expression.\n", pattern); + ERR(NL, "%s is not a valid regular expression.\n", pattern); return(-1); } result = regexec(®, string, 0, 0, 0); -- cgit v1.2.3-24-g4f1b