diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-14 05:51:25 +0400 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-14 05:51:25 +0400 |
commit | d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /sysklogd | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) |
Use errorMsg rather than fprintf.
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/logger.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index d32ccaaf3..71d703085 100644 --- a/sysklogd/logger.c +++ b/sysklogd/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); } } |