Module: sip-router
Branch: master
Commit: e675f20af9a4d9a4b5e7b11277f4a4e0c774e128
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e675f20…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Oct 5 21:55:51 2014 +0200
lib/srdb1: end of line after several debug messages
---
lib/srdb1/db_val.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/srdb1/db_val.c b/lib/srdb1/db_val.c
index 1bdc2bc..df9199c 100644
--- a/lib/srdb1/db_val.c
+++ b/lib/srdb1/db_val.c
@@ -53,7 +53,7 @@ int db_str2val(const db_type_t _t, db_val_t* _v, const char* _s, const
int _l,
}
/* A NULL string is a SQL NULL value, otherwise its an empty value */
if (!_s) {
- LM_DBG("converting NULL value");
+ LM_DBG("converting NULL value\n");
memset(_v, 0, sizeof(db_val_t));
/* Initialize the string pointers to a dummy empty
* string so that we do not crash when the NULL flag
@@ -124,7 +124,7 @@ int db_str2val(const db_type_t _t, db_val_t* _v, const char* _s, const
int _l,
LM_ERR("no private memory left\n");
return -6;
}
- LM_DBG("allocate %d bytes memory for STRING at %p", _l + 1,
VAL_STRING(_v));
+ LM_DBG("allocate %d bytes memory for STRING at %p\n", _l + 1,
VAL_STRING(_v));
strncpy((char*)VAL_STRING(_v), _s, _l);
((char*)VAL_STRING(_v))[_l] = '\0';
VAL_FREE(_v) = 1;
@@ -144,7 +144,7 @@ int db_str2val(const db_type_t _t, db_val_t* _v, const char* _s, const
int _l,
LM_ERR("no private memory left\n");
return -7;
}
- LM_DBG("allocate %d bytes memory for STR at %p", _l, VAL_STR(_v).s);
+ LM_DBG("allocate %d bytes memory for STR at %p\n", _l, VAL_STR(_v).s);
strncpy(VAL_STR(_v).s, _s, _l);
VAL_FREE(_v) = 1;
}
@@ -175,7 +175,7 @@ int db_str2val(const db_type_t _t, db_val_t* _v, const char* _s, const
int _l,
LM_ERR("no private memory left\n");
return -9;
}
- LM_DBG("allocate %d bytes memory for BLOB at %p", _l, VAL_BLOB(_v).s);
+ LM_DBG("allocate %d bytes memory for BLOB at %p\n", _l, VAL_BLOB(_v).s);
strncpy(VAL_BLOB(_v).s, _s, _l);
VAL_FREE(_v) = 1;
}