[sr-dev] git:master:41d66fa2: log_systemd: fixed typo in previous commit

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[sr-dev] git:master:41d66fa2: log_systemd: fixed typo in previous commit

Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 41d66fa2293386bcc3765d6025c2f9b1bd89cd16
URL: https://github.com/kamailio/kamailio/commit/41d66fa2293386bcc3765d6025c2f9b1bd89cd16

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
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;


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev