Module: sip-router
Branch: master
Commit: 5937c668d790262d88d220029e3c9e9b017a7901
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5937c668d790262d88d220029e3c9e9b017a7901

Author: Olle E. Johansson <[email protected]>
Committer: Olle E. Johansson <[email protected]>
Date:   Sun Dec  7 11:41:24 2014 +0100

db_text Add newline at end of debug/info/error output

---

 modules/db_text/dbt_api.c |   12 ++++++------
 modules/db_text/dbt_lib.c |    6 +++---
 modules/db_text/dbt_res.c |    2 +-
 3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/modules/db_text/dbt_api.c b/modules/db_text/dbt_api.c
index 8dff6f7..f94190a 100644
--- a/modules/db_text/dbt_api.c
+++ b/modules/db_text/dbt_api.c
@@ -59,7 +59,7 @@ static int dbt_get_columns(db1_res_t* _r, dbt_result_p _dres)
                return -2;
        }
        if (db_allocate_columns(_r, RES_COL_N(_r)) != 0) {
-               LM_ERR("could not allocate columns");
+               LM_ERR("could not allocate columns\n");
                return -3;
        }
 
@@ -75,7 +75,7 @@ static int dbt_get_columns(db1_res_t* _r, dbt_result_p _dres)
                        db_free_columns(_r);
                        return -4;
                }
-               LM_DBG("allocate %d bytes for RES_NAMES[%d] at %p",
+               LM_DBG("allocate %d bytes for RES_NAMES[%d] at %p\n",
                                (int)sizeof(str), col,
                                RES_NAMES(_r)[col]);
                RES_NAMES(_r)[col]->s = _dres->colv[col].name.s;
@@ -114,7 +114,7 @@ static int dbt_convert_row(db1_res_t* _res, db_row_t* _r, 
dbt_row_p _r1)
        }
 
        if (db_allocate_row(_res, _r) != 0) {
-               LM_ERR("could not allocate row");
+               LM_ERR("could not allocate row\n");
                return -2;
        }
 
@@ -129,7 +129,7 @@ static int dbt_convert_row(db1_res_t* _res, db_row_t* _r, 
dbt_row_p _r1)
                        break;
 
                        case DB1_BIGINT:
-                               LM_ERR("BIGINT not supported");
+                               LM_ERR("BIGINT not supported\n");
                                return -1;
 
                        case DB1_DOUBLE:
@@ -178,7 +178,7 @@ static int dbt_convert_row(db1_res_t* _res, db_row_t* _r, 
dbt_row_p _r1)
                        break;
 
                        default:
-                               LM_ERR("val type [%d] not supported", 
RES_TYPES(_res)[i]);
+                               LM_ERR("val type [%d] not supported\n", 
RES_TYPES(_res)[i]);
                                return -1;
                }
        }
@@ -202,7 +202,7 @@ static int dbt_convert_rows(db1_res_t* _r, dbt_result_p 
_dres)
                return 0;
        }
        if (db_allocate_rows(_r) < 0) {
-               LM_ERR("could not allocate rows");
+               LM_ERR("could not allocate rows\n");
                return -2;
        }
        row = 0;
diff --git a/modules/db_text/dbt_lib.c b/modules/db_text/dbt_lib.c
index c4aee80..dc63c0e 100644
--- a/modules/db_text/dbt_lib.c
+++ b/modules/db_text/dbt_lib.c
@@ -264,7 +264,7 @@ dbt_table_p dbt_db_get_table(dbt_cache_p _dc, const str *_s)
        int hashidx;
 
        if(!_dbt_cachetbl || !_dc || !_s || !_s->s || _s->len<=0) {
-               LM_ERR("invalid parameter");
+               LM_ERR("invalid parameter\n");
                return NULL;
        }
 
@@ -304,7 +304,7 @@ dbt_table_p dbt_db_get_table(dbt_cache_p _dc, const str *_s)
 
        if(!_tbc)
        {
-               LM_ERR("could not load database from file [%.*s]", _s->len, 
_s->s);
+               LM_ERR("could not load database from file [%.*s]\n", _s->len, 
_s->s);
                lock_release(&_dbt_cachetbl[hashidx].sem);
                return NULL;
        }
@@ -438,7 +438,7 @@ int dbt_is_neq_type(db_type_t _t0, db_type_t _t1)
                                return 0;
 
                case DB1_BIGINT:
-                       LM_ERR("BIGINT not supported");
+                       LM_ERR("BIGINT not supported\n");
                        return 0;
 
                case DB1_DATETIME:
diff --git a/modules/db_text/dbt_res.c b/modules/db_text/dbt_res.c
index c64a7f2..f115992 100644
--- a/modules/db_text/dbt_res.c
+++ b/modules/db_text/dbt_res.c
@@ -456,7 +456,7 @@ int dbt_cmp_val(dbt_val_p _vp, db_val_t* _v)
                                        (_vp->val.int_val>_v->val.int_val)?1:0;
 
                case DB1_BIGINT:
-                       LM_ERR("BIGINT not supported");
+                       LM_ERR("BIGINT not supported\n");
                        return -1;
 
                case DB1_DOUBLE:


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to