db_postgres: add missing line breaks to log statements
authorHenning Westerholt <hw@skalatan.de>
Wed, 5 Jun 2019 20:26:09 +0000 (22:26 +0200)
committerHenning Westerholt <hw@skalatan.de>
Wed, 5 Jun 2019 20:26:09 +0000 (22:26 +0200)
src/modules/db_postgres/km_dbase.c
src/modules/db_postgres/pg_mod.c

index 5725349..4ddbe64 100644 (file)
@@ -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;
        }
 
index 7ebee93..4fc40ac 100644 (file)
@@ -523,7 +523,7 @@ error:
 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)