浏览代码

- add a few missing '\n' to log messages

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4149 689a6050-402a-0410-94f2-e92a70836424
Henning Westerholt 17 年之前
父节点
当前提交
1e9289283b
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      modules/db_postgres/km_res.c

+ 8 - 8
modules/db_postgres/km_res.c

@@ -103,7 +103,7 @@ int db_postgres_get_columns(const db_con_t* _h, db_res_t* _r)
 	}
 	}
 
 
 	if (db_allocate_columns(_r, RES_COL_N(_r)) != 0) {
 	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;
 		return -3;
 	}
 	}
 
 
@@ -116,7 +116,7 @@ int db_postgres_get_columns(const db_con_t* _h, db_res_t* _r)
 			db_free_columns(_r);
 			db_free_columns(_r);
 			return -4;
 			return -4;
 		}
 		}
-		LM_DBG("allocate %d bytes for RES_NAMES[%d] at %p", sizeof(str), col,
+		LM_DBG("allocate %d bytes for RES_NAMES[%d] at %p\n", sizeof(str), col,
 				RES_NAMES(_r)[col]);
 				RES_NAMES(_r)[col]);
 
 
 		/* The pointer that is here returned is part of the result structure. */
 		/* The pointer that is here returned is part of the result structure. */
@@ -132,21 +132,21 @@ int db_postgres_get_columns(const db_con_t* _h, db_res_t* _r)
 			case INT2OID:
 			case INT2OID:
 			case INT4OID:
 			case INT4OID:
 			case INT8OID:
 			case INT8OID:
-				LM_DBG("use DB_INT result type");
+				LM_DBG("use DB_INT result type\n");
 				RES_TYPES(_r)[col] = DB_INT;
 				RES_TYPES(_r)[col] = DB_INT;
 			break;
 			break;
 
 
 			case FLOAT4OID:
 			case FLOAT4OID:
 			case FLOAT8OID:
 			case FLOAT8OID:
 			case NUMERICOID:
 			case NUMERICOID:
-				LM_DBG("use DB_DOUBLE result type");
+				LM_DBG("use DB_DOUBLE result type\n");
 				RES_TYPES(_r)[col] = DB_DOUBLE;
 				RES_TYPES(_r)[col] = DB_DOUBLE;
 			break;
 			break;
 
 
 			case DATEOID:
 			case DATEOID:
 			case TIMESTAMPOID:
 			case TIMESTAMPOID:
 			case TIMESTAMPTZOID:
 			case TIMESTAMPTZOID:
-				LM_DBG("use DB_DATETIME result type");
+				LM_DBG("use DB_DATETIME result type\n");
 				RES_TYPES(_r)[col] = DB_DATETIME;
 				RES_TYPES(_r)[col] = DB_DATETIME;
 			break;
 			break;
 
 
@@ -154,19 +154,19 @@ int db_postgres_get_columns(const db_con_t* _h, db_res_t* _r)
 			case CHAROID:
 			case CHAROID:
 			case VARCHAROID:
 			case VARCHAROID:
 			case BPCHAROID:
 			case BPCHAROID:
-				LM_DBG("use DB_STRING result type");
+				LM_DBG("use DB_STRING result type\n");
 				RES_TYPES(_r)[col] = DB_STRING;
 				RES_TYPES(_r)[col] = DB_STRING;
 			break;
 			break;
 
 
 			case TEXTOID:
 			case TEXTOID:
 			case BYTEAOID:
 			case BYTEAOID:
-				LM_DBG("use DB_BLOB result type");
+				LM_DBG("use DB_BLOB result type\n");
 				RES_TYPES(_r)[col] = DB_BLOB;
 				RES_TYPES(_r)[col] = DB_BLOB;
 			break;
 			break;
 
 
 			case BITOID:
 			case BITOID:
 			case VARBITOID:
 			case VARBITOID:
-				LM_DBG("use DB_BITMAP result type");
+				LM_DBG("use DB_BITMAP result type\n");
 				RES_TYPES(_r)[col] = DB_BITMAP;
 				RES_TYPES(_r)[col] = DB_BITMAP;
 			break;
 			break;