summaryrefslogtreecommitdiff
path: root/logger.c
diff options
context:
space:
mode:
authorMatt Kraai2000-07-14 01:51:25 +0000
committerMatt Kraai2000-07-14 01:51:25 +0000
commitd537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch)
tree62127f20fc07758e445d8c4e186306cbe83d77b1 /logger.c
parent4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff)
downloadbusybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip
busybox-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz
Use errorMsg rather than fprintf.
Diffstat (limited to 'logger.c')
-rw-r--r--logger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/logger.c b/logger.c
index d32ccaa..71d7030 100644
--- a/logger.c
+++ b/logger.c
@@ -96,7 +96,7 @@ static int pencode(char *s)
*s = '\0';
fac = decode(save, facilitynames);
if (fac < 0) {
- fprintf(stderr, "unknown facility name: %s\n", save);
+ errorMsg("unknown facility name: %s\n", save);
exit(FALSE);
}
*s++ = '.';
@@ -105,7 +105,7 @@ static int pencode(char *s)
}
lev = decode(s, prioritynames);
if (lev < 0) {
- fprintf(stderr, "unknown priority name: %s\n", save);
+ errorMsg("unknown priority name: %s\n", save);
exit(FALSE);
}
return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK));
@@ -166,7 +166,7 @@ extern int logger_main(int argc, char **argv)
if (argc >= 1) {
message = *argv;
} else {
- fprintf(stderr, "No message\n");
+ errorMsg("No message\n");
exit(FALSE);
}
}