Module: kamailio
Branch: master
Commit: 7c773a1278abfc99b7d9310d6faa39589cc2484b
URL: 
https://github.com/kamailio/kamailio/commit/7c773a1278abfc99b7d9310d6faa39589cc2484b

Author: Henning Westerholt <[email protected]>
Committer: Henning Westerholt <[email protected]>
Date: 2019-06-05T22:26:09+02:00

db_postgres: add missing line breaks to log statements

---

Modified: src/modules/db_postgres/km_dbase.c
Modified: src/modules/db_postgres/pg_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/7c773a1278abfc99b7d9310d6faa39589cc2484b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/7c773a1278abfc99b7d9310d6faa39589cc2484b.patch

---

diff --git a/src/modules/db_postgres/km_dbase.c 
b/src/modules/db_postgres/km_dbase.c
index 5725349d25..4ddbe641b9 100644
--- a/src/modules/db_postgres/km_dbase.c
+++ b/src/modules/db_postgres/km_dbase.c
@@ -606,7 +606,7 @@ int db_postgres_insert(const db1_con_t *_h, const db_key_t 
*_k,
        int tmp = db_postgres_store_result(_h, &_r);
 
        if(tmp < 0) {
-               LM_WARN("unexpected result returned");
+               LM_WARN("unexpected result returned\n");
                ret = tmp;
        }
 
@@ -635,7 +635,7 @@ int db_postgres_delete(const db1_con_t *_h, const db_key_t 
*_k,
        int tmp = db_postgres_store_result(_h, &_r);
 
        if(tmp < 0) {
-               LM_WARN("unexpected result returned");
+               LM_WARN("unexpected result returned\n");
                ret = tmp;
        }
 
@@ -914,7 +914,7 @@ int db_postgres_update(const db1_con_t *_h, const db_key_t 
*_k,
        int tmp = db_postgres_store_result(_h, &_r);
 
        if(tmp < 0) {
-               LM_WARN("unexpected result returned");
+               LM_WARN("unexpected result returned\n");
                ret = tmp;
        }
 
diff --git a/src/modules/db_postgres/pg_mod.c b/src/modules/db_postgres/pg_mod.c
index 7ebee934c4..4fc40ac6e8 100644
--- a/src/modules/db_postgres/pg_mod.c
+++ b/src/modules/db_postgres/pg_mod.c
@@ -523,7 +523,7 @@ int pg_test(void)
 int mod_register(char *path, int *dlflags, void *p1, void *p2)
 {
        if(!pg_alloc_buffer()) {
-               LM_ERR("failed too allocate buffer");
+               LM_ERR("failed too allocate buffer\n");
                return -1;
        }
        if(db_api_init() < 0)


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

Reply via email to