Module: sip-router
Branch: janakj/mysql
Commit: 24d1af2ac2835c3574ce733e7cdc1509bd3f7ae0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=24d1af2…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Tue May 13 12:00:36 2008 +0000
- add a few more missing '\n' to debug messages
git-svn-id:
https://openser.svn.sourceforge.net/svnroot/openser/trunk@4163
689a6050-402a-0410-94f2-e92a70836424
---
modules/db_mysql/km_res.c | 2 +-
modules/db_mysql/km_row.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/db_mysql/km_res.c b/modules/db_mysql/km_res.c
index 7c9812b..b3e3b80 100644
--- a/modules/db_mysql/km_res.c
+++ b/modules/db_mysql/km_res.c
@@ -155,7 +155,7 @@ static inline int db_mysql_convert_rows(const db_con_t* _h, db_res_t*
_r)
LM_ERR("no private memory left\n");
return -2;
}
- LM_DBG("allocate %d bytes for rows at %p", len, RES_ROWS(_r));
+ LM_DBG("allocate %d bytes for rows at %p\n", len, RES_ROWS(_r));
memset(RES_ROWS(_r), 0, len);
for(row = 0; row < RES_ROW_N(_r); row++) {
diff --git a/modules/db_mysql/km_row.c b/modules/db_mysql/km_row.c
index c29d499..b79edb4 100644
--- a/modules/db_mysql/km_row.c
+++ b/modules/db_mysql/km_row.c
@@ -52,7 +52,7 @@ int db_mysql_convert_row(const db_con_t* _h, db_res_t* _res, db_row_t*
_r)
LM_ERR("no private memory left\n");
return -1;
}
- LM_DBG("allocate %d bytes for row values at %p", len,
+ LM_DBG("allocate %d bytes for row values at %p\n", len,
ROW_VALUES(_r));
memset(ROW_VALUES(_r), 0, len);
@@ -65,7 +65,7 @@ int db_mysql_convert_row(const db_con_t* _h, db_res_t* _res, db_row_t*
_r)
if (db_mysql_str2val(RES_TYPES(_res)[i], &(ROW_VALUES(_r)[i]),
((MYSQL_ROW)CON_ROW(_h))[i], lengths[i]) < 0) {
LM_ERR("failed to convert value\n");
- LM_DBG("free row at %pn", _r);
+ LM_DBG("free row at %p\n", _r);
db_free_row(_r);
return -3;
}