diff options
author | brian <brian@cvs.openbsd.org> | 1997-12-15 22:50:22 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1997-12-15 22:50:22 +0000 |
commit | bfddc6a53b43b088d051d6bff1daa65662e7f86e (patch) | |
tree | 7ff14842a6ea1da0fd57116f6bbcb8a6ff4526bd | |
parent | 861481c5c477ebd1013df7ee1dbbf53a58c5d873 (diff) |
Use LogWARN for command usage messages and unrecognised
commands, not LogCOMMAND.
-rw-r--r-- | usr.sbin/ppp/command.c | 4 | ||||
-rw-r--r-- | usr.sbin/ppp/systems.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 32762743ddf..a68cedaa698 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.4 1997/12/15 22:44:50 brian Exp $ + * $Id: command.c,v 1.5 1997/12/15 22:50:20 brian Exp $ * */ #include <sys/param.h> @@ -688,7 +688,7 @@ FindExec(struct cmdtab const *cmds, int argc, char const *const *argv) if (val == -1) LogPrintf(LogWARN, "Usage: %s\n", cmd->syntax); else if (val) - LogPrintf(LogCOMMAND, "%s: Failed %d\n", *argv, val); + LogPrintf(LogWARN, "%s: Failed %d\n", *argv, val); return val; } diff --git a/usr.sbin/ppp/systems.c b/usr.sbin/ppp/systems.c index a19ca4e1e07..78c3dcaef5a 100644 --- a/usr.sbin/ppp/systems.c +++ b/usr.sbin/ppp/systems.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: systems.c,v 1.1 1997/11/23 20:27:36 brian Exp $ + * $Id: systems.c,v 1.2 1997/12/15 22:50:21 brian Exp $ * * TODO: */ @@ -279,7 +279,7 @@ ReadSystem(const char *name, const char *file, int doexec) return 0; /* got it */ break; default: - LogPrintf(LogCOMMAND, "%s: %s: Invalid command\n", name, cp); + LogPrintf(LogWARN, "%s: %s: Invalid command\n", filename, cp); break; } } else if (strcmp(cp, name) == 0) { |