浏览代码

p_usrloc: fix a few more missing line breaks for log statements

Henning Westerholt 6 年之前
父节点
当前提交
f2ba8d5604

+ 3 - 3
src/modules/p_usrloc/dlist.c

@@ -150,7 +150,7 @@ int register_udomain(const char *name, udomain_t **domain) {
 unsigned long get_number_of_users(void)
 {
 	int numberOfUsers = 0;
-	LM_INFO("not available with partitioned interface");
+	LM_INFO("not available with partitioned interface\n");
 	return numberOfUsers;
 }
 
@@ -158,7 +158,7 @@ unsigned long get_number_of_users(void)
 int get_all_ucontacts(void *buf, int len, unsigned int flags,
                          unsigned int part_idx, unsigned int part_max, int options)
 {
-	LM_INFO("not available with partitioned interface");
+	LM_INFO("not available with partitioned interface\n");
 	return -1;
 }
 /*!
@@ -168,7 +168,7 @@ int get_all_ucontacts(void *buf, int len, unsigned int flags,
 int synchronize_all_udomains(void)
 {
 	int res = 0;
-	LM_INFO("not available with partitioned interface");
+	LM_INFO("not available with partitioned interface\n");
 	return res;
 }
 

+ 1 - 1
src/modules/p_usrloc/p_usrloc_mod.c

@@ -347,7 +347,7 @@ static int mod_init(void)
 	}
 
 	if (db_mode != DB_ONLY) {
-		LM_ERR("DB_ONLY is the only mode possible for partitioned usrloc. Please set db_mode to 3");
+		LM_ERR("DB_ONLY is the only mode possible for partitioned usrloc. Please set db_mode to 3\n");
 		return  -1;
 	}
 

+ 1 - 1
src/modules/p_usrloc/udomain.c

@@ -599,7 +599,7 @@ int db_timer_udomain(udomain_t* _d)
 	vals[1].nul = 0;
 	vals[1].val.time_val = 0;
 	// we're using a local cron job to delete expired entries
-	LM_INFO("using sp-ul_db database interface, expires is not implemented");
+	LM_INFO("using sp-ul_db database interface, expires is not implemented\n");
 	//if (ul_db_layer_delete(_d, NULL, NULL, keys, ops, vals, 2) < 0) { //FIXME
 	return 0;
 }

+ 6 - 6
src/modules/p_usrloc/ul_db.c

@@ -69,7 +69,7 @@ int ul_db_init(void) {
 			LM_ERR("db api of write db doesn't support required operation.\n");
 			return -1;
 		}
-		LM_INFO("write db initialized");
+		LM_INFO("write db initialized\n");
 	}
 	
 	if(db_bind_mod(mdb.read.url, &mdb.read.dbf) < 0) {
@@ -80,7 +80,7 @@ int ul_db_init(void) {
 		LM_ERR("db api of read db doesn't support required operation.\n");
 		return -1;
 	}
-	LM_INFO("read db initialized");
+	LM_INFO("read db initialized\n");
 	return 0;
 }
 
@@ -97,7 +97,7 @@ int ul_db_child_init(void) {
 		LM_ERR("could not connect to sip master db (read).\n");
 		return -1;
 	}
-	LM_INFO("read db connection for children initialized");
+	LM_INFO("read db connection for children initialized\n");
 	
 	if(ul_db_child_locnr_init() == -1) return -1;
 	
@@ -109,7 +109,7 @@ int ul_db_child_init(void) {
 			lock_release(&write_on_master_db_shared->lock);
 			return -1;
 		}
-		LM_INFO("write db connection for children initialized");
+		LM_INFO("write db connection for children initialized\n");
 	}
 	lock_release(&write_on_master_db_shared->lock);
 	return 0;
@@ -117,7 +117,7 @@ int ul_db_child_init(void) {
 
 int ul_db_child_locnr_init(void) {
 	if(!mdb.read.dbh){
-		LM_ERR("Sip master DB connection(read) is down");
+		LM_ERR("Sip master DB connection(read) is down\n");
 		return -1;
 	}
 	if(load_location_number(&mdb.read.dbf, mdb.read.dbh, &max_loc_nr) != 0){
@@ -208,7 +208,7 @@ int db_handle_error(ul_db_handle_t * handle, int no) {
 		    "errors occurred: %i, threshold: %i\n",
 		handle->id, db->no, db->errors, cfg_get(p_usrloc, p_usrloc_cfg, db_err_threshold));
 	if(db->errors >= cfg_get(p_usrloc, p_usrloc_cfg, db_err_threshold)) {
-		LM_DBG("db_handle_error: now doing failover");
+		LM_DBG("db_handle_error: now doing failover\n");
 		if((db_failover(&mdb.write.dbf, mdb.write.dbh, handle, no)) < 0) {
 			LM_ERR("error in doing failover.\n");
 			return -1;

+ 2 - 2
src/modules/p_usrloc/ul_mi.c

@@ -67,7 +67,7 @@ static str mi_ul_path = str_init("dummypath");
 static inline udomain_t* mi_find_domain(str* table)
 {
 
-	LM_ERR("not available in sp-ul_db mode");
+	LM_ERR("not available in p_usrloc mode\n");
 	return 0;
 }
 
@@ -369,7 +369,7 @@ struct mi_root* mi_usrloc_rm_contact(struct mi_root *cmd, void *param)
  */
 struct mi_root* mi_usrloc_dump(struct mi_root *cmd, void *param)
 {
-	LM_ERR("not available in sp-ul_db mode");
+	LM_ERR("not available in p_usrloc mode\n");
 	return 0;
 }