[sr-dev] git:master:41d66fa2: log_systemd: fixed typo in previous commit
Daniel-Constantin Mierla
miconda at gmail.com
Thu Dec 7 15:25:18 CET 2017
Module: kamailio
Branch: master
Commit: 41d66fa2293386bcc3765d6025c2f9b1bd89cd16
URL: https://github.com/kamailio/kamailio/commit/41d66fa2293386bcc3765d6025c2f9b1bd89cd16
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-12-07T15:24:44+01:00
log_systemd: fixed typo in previous commit
---
Modified: src/modules/log_systemd/log_systemd_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/41d66fa2293386bcc3765d6025c2f9b1bd89cd16.diff
Patch: https://github.com/kamailio/kamailio/commit/41d66fa2293386bcc3765d6025c2f9b1bd89cd16.patch
---
diff --git a/src/modules/log_systemd/log_systemd_mod.c b/src/modules/log_systemd/log_systemd_mod.c
index eac379c0ab..d948b9a60b 100644
--- a/src/modules/log_systemd/log_systemd_mod.c
+++ b/src/modules/log_systemd/log_systemd_mod.c
@@ -106,7 +106,7 @@ static int ki_sd_journal_print(sip_msg_t* msg, str* slev, str* stxt)
/* one of LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING,
* LOG_NOTICE, LOG_INFO, LOG_DEBUG, as defined in syslog.h, see syslog(3) */
ilev = LOG_DEBUG;
- if(slev->len==9 && strncasecmp(slev->1s, "LOG_EMERG", slev->len)==0) {
+ if(slev->len==9 && strncasecmp(slev->s, "LOG_EMERG", slev->len)==0) {
ilev = LOG_EMERG;
} else if(slev->len==9 && strncasecmp(slev->s, "LOG_ALERT", slev->len)==0) {
ilev = LOG_ALERT;
More information about the sr-dev
mailing list