[SR-Dev] git:janakj/postgres: - fix a few line breaks in errors logs

Jan Janak jan at iptel.org
Wed Feb 18 01:26:22 CET 2009


Module: sip-router
Branch: janakj/postgres
Commit: 5c47885dadcb7d107785138277941afaef8f6214
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5c47885dadcb7d107785138277941afaef8f6214

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Mon Jan  5 12:39:57 2009 +0000

- fix a few line breaks in errors logs


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5414 689a6050-402a-0410-94f2-e92a70836424

---

 modules/db_postgres/km_res.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/db_postgres/km_res.c b/modules/db_postgres/km_res.c
index c1f7509..431b81f 100644
--- a/modules/db_postgres/km_res.c
+++ b/modules/db_postgres/km_res.c
@@ -223,7 +223,7 @@ int db_postgres_convert_rows(const db_con_t* _h, db_res_t* _r)
 	memset(row_buf, 0, len);
 
 	if (db_allocate_rows(_r) < 0) {
-		LM_ERR("could not allocate rows");
+		LM_ERR("could not allocate rows\n");
 		return -2;
 	}
 
@@ -295,7 +295,7 @@ int db_postgres_convert_row(const db_con_t* _h, db_res_t* _r, db_row_t* _row,
 	}
 
 	if (db_allocate_row(_r, _row) != 0) {
-		LM_ERR("could not allocate row");
+		LM_ERR("could not allocate row\n");
 		return -2;
 	}
 
@@ -311,7 +311,7 @@ int db_postgres_convert_row(const db_con_t* _h, db_res_t* _r, db_row_t* _row,
 		if (db_postgres_str2val(RES_TYPES(_r)[col], &(ROW_VALUES(_row)[col]),
 		row_buf[col], col_len) < 0) {
 			LM_ERR("failed to convert value\n");
-			LM_DBG("free row at %pn", _row);
+			LM_DBG("free row at %p\n", _row);
 			db_free_row(_row);
 			return -3;
 		}




More information about the sr-dev mailing list