mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Use LogWARN for command usage messages and unrecognised
commands, not LogCOMMAND.
This commit is contained in:
parent
32ca334139
commit
abf533d806
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31740
@ -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.108 1997/12/08 20:09:10 brian Exp $
|
||||
* $Id: command.c,v 1.109 1997/12/13 02:37:21 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;
|
||||
}
|
||||
|
@ -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.27 1997/11/14 15:38:07 brian Exp $
|
||||
* $Id: systems.c,v 1.28 1997/11/22 03:37:51 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user