diff options
| author | David Lamparter <equinox@diac24.net> | 2018-08-16 16:39:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-16 16:39:40 +0200 |
| commit | 55d3dad27cad9e38c9bb9f70248661a06052c83a (patch) | |
| tree | e8e0fbac5155e5e50eee628f2c75f4ed074acb62 /lib/command.c | |
| parent | f5bffa5a7435696780d8a7f1ebe842e4cd7b3af4 (diff) | |
| parent | 633fc9b133b73aee6c828b20339ce0762664e3f0 (diff) | |
Merge pull request #2448 from qlyoung/error-reference-cards
Error Reference Cards
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c index 7eda239ee4..1df6442107 100644 --- a/lib/command.c +++ b/lib/command.c @@ -45,6 +45,7 @@ #include "libfrr.h" #include "jhash.h" #include "hook.h" +#include "lib_errors.h" DEFINE_MTYPE(LIB, HOST, "Host config") DEFINE_MTYPE(LIB, COMPLETION, "Completion item") @@ -2416,7 +2417,8 @@ static int set_log_file(struct vty *vty, const char *fname, int loglevel) cwd[MAXPATHLEN] = '\0'; if (getcwd(cwd, MAXPATHLEN) == NULL) { - zlog_err("config_log_file: Unable to alloc mem!"); + flog_err_sys(LIB_ERR_SYSTEM_CALL, + "config_log_file: Unable to alloc mem!"); return CMD_WARNING_CONFIG_FAILED; } |
