summaryrefslogtreecommitdiff
path: root/src/sysexec.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-23 14:18:13 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-23 14:18:13 +0000
commit364cdcb626efa89061100efce7eb168155da9906 (patch)
tree57165429664bfacdebea904e51cc5eab9893104f /src/sysexec.h
parentadded string_list (diff)
added extended logging support
Diffstat (limited to 'src/sysexec.h')
-rw-r--r--src/sysexec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysexec.h b/src/sysexec.h
index 07cac2c..a50ec06 100644
--- a/src/sysexec.h
+++ b/src/sysexec.h
@@ -58,7 +58,7 @@ int exec_script(const char* script, const char* ifname)
}
execl("/bin/sh", "/bin/sh", script, ifname, NULL);
// if execl return, an error occurred
- log_printf(ERR, "error on executing script: %m");
+ log_printf(ERROR, "error on executing script: %m");
return -1;
}
int status = 0;
@@ -68,7 +68,7 @@ int exec_script(const char* script, const char* ifname)
else if(WIFSIGNALED(status))
log_printf(NOTICE, "script '%s' terminated after signal %d", script, WTERMSIG(status));
else
- log_printf(ERR, "executing script: unkown error");
+ log_printf(ERROR, "executing script: unkown error");
return status;