Browse code

cr: add a few missing line breaks in init logs, port from k, r5853

Henning Westerholt authored on 25/05/2009 08:41:13
Showing 1 changed files
... ...
@@ -172,14 +172,14 @@ static int mod_init(void) {
172 172
 	carrierroute_db_vars();
173 173
 
174 174
 	if (cr_match_mode != 10 && cr_match_mode != 128) {
175
-		LM_ERR("invalid matching mode %d specific, please use 10 or 128", cr_match_mode);
175
+		LM_ERR("invalid matching mode %d specific, please use 10 or 128\n", cr_match_mode);
176 176
 		return -1;
177 177
 	}
178 178
 
179 179
 	if (strcmp(config_source, "db") == 0) {
180 180
 		mode = CARRIERROUTE_MODE_DB;
181 181
 
182
-		LM_INFO("use database as configuration source");
182
+		LM_INFO("use database as configuration source\n");
183 183
 		if(carrierroute_db_init() < 0){
184 184
 			return -1;
185 185
 		}
... ...
@@ -191,13 +191,13 @@ static int mod_init(void) {
191 191
 	else if (strcmp(config_source, "file") == 0) {
192 192
 		mode = CARRIERROUTE_MODE_FILE;
193 193
 
194
-		LM_INFO("use file as configuration source");
194
+		LM_INFO("use file as configuration source\n");
195 195
 		if(stat(config_file, &fs) != 0){
196 196
 			LM_ERR("can't stat config file\n");
197 197
 			return -1;
198 198
 		}
199 199
 		if(fs.st_mode & S_IWOTH){
200
-			LM_WARN("insecure file permissions, routing data is world writeable");
200
+			LM_WARN("insecure file permissions, routing data is world writeable\n");
201 201
 		}
202 202
 		if( !( fs.st_mode & S_IWOTH) &&
203 203
 			!((fs.st_mode & S_IWGRP) && (fs.st_gid == getegid())) &&