diff options
| author | David Härdeman <david@hardeman.nu> | 2020-06-20 14:55:54 +0200 | 
|---|---|---|
| committer | David Härdeman <david@hardeman.nu> | 2020-06-20 14:55:54 +0200 | 
| commit | 77f9be38d7469eefb0fac3adf43261b4d84315d2 (patch) | |
| tree | 70c42ec4864e850e15b0c31b9493646ead42a05b /proxy.c | |
| parent | e11014c0443ea687ad65a14b9124aa366da7984a (diff) | |
Make logging messages consistent in adding a newline for all messages
Diffstat (limited to 'proxy.c')
| -rw-r--r-- | proxy.c | 22 | 
1 files changed, 11 insertions, 11 deletions
@@ -67,7 +67,7 @@ proxy_free(struct uring_task *task)  	char stc[100];  	char duration[100]; -	debug(DBG_PROXY, "server: %s, src: %s, dst: %s\n", +	debug(DBG_PROXY, "server: %s, src: %s, dst: %s",  	      proxy->scfg->name,  	      proxy->client_conn.remote.addrstr,  	      proxy->server_conn.remote.addrstr); @@ -78,7 +78,7 @@ proxy_free(struct uring_task *task)  		format_bytes(stc, sizeof(stc), proxy->server_bytes);  		info("%s: proxy connection %s -> %s closed " -		     "(CtS: %s, StC: %s), duration %s\n", +		     "(CtS: %s, StC: %s), duration %s",  		     proxy->scfg->name,  		     proxy->client_conn.remote.addrstr,  		     proxy->server_conn.remote.addrstr, @@ -94,7 +94,7 @@ proxy_client_free(struct uring_task *task)  {  	struct server_proxy *proxy = container_of(task, struct server_proxy, clienttask); -	debug(DBG_PROXY, "%s: client connection closed\n", proxy->scfg->name); +	debug(DBG_PROXY, "%s: client connection closed", proxy->scfg->name);  }  static void @@ -102,13 +102,13 @@ proxy_server_free(struct uring_task *task)  {  	struct server_proxy *proxy = container_of(task, struct server_proxy, servertask); -	debug(DBG_PROXY, "%s: server connection closed\n", proxy->scfg->name); +	debug(DBG_PROXY, "%s: server connection closed", proxy->scfg->name);  }  void  proxy_delete(struct cfg *cfg, struct server_proxy *proxy)  { -	debug(DBG_PROXY, "%s: shutting down proxy %p\n", proxy->scfg->name, proxy); +	debug(DBG_PROXY, "%s: shutting down proxy %p", proxy->scfg->name, proxy);  	uring_task_destroy(cfg, &proxy->servertask);  	uring_task_destroy(cfg, &proxy->clienttask); @@ -125,7 +125,7 @@ proxy_client_data_out(struct cfg *cfg, struct uring_task *task, int res)  	assert_task_alive(DBG_PROXY, task);  	if (res <= 0) { -		debug(DBG_PROXY, "%s: result was %i\n", proxy->scfg->name, res); +		debug(DBG_PROXY, "%s: result was %i", proxy->scfg->name, res);  		uring_task_close_fd(cfg, task);  		proxy_delete(cfg, proxy);  		return; @@ -144,7 +144,7 @@ proxy_client_data_in(struct cfg *cfg, struct uring_task *task, int res)  	assert_task_alive(DBG_PROXY, task);  	if (res <= 0) { -		debug(DBG_PROXY, "%s: result was %i\n", proxy->scfg->name, res); +		debug(DBG_PROXY, "%s: result was %i", proxy->scfg->name, res);  		uring_task_close_fd(cfg, task);  		proxy_delete(cfg, proxy);  		return; @@ -164,7 +164,7 @@ proxy_server_data_out(struct cfg *cfg, struct uring_task *task, int res)  	assert_task_alive(DBG_PROXY, task);  	if (res <= 0) { -		debug(DBG_PROXY, "%s: result was %i\n", proxy->scfg->name, res); +		debug(DBG_PROXY, "%s: result was %i", proxy->scfg->name, res);  		uring_task_close_fd(cfg, task);  		proxy_delete(cfg, proxy);  		return; @@ -183,7 +183,7 @@ proxy_server_data_in(struct cfg *cfg, struct uring_task *task, int res)  	assert_task_alive(DBG_PROXY, task);  	if (res <= 0) { -		debug(DBG_PROXY, "%s: result was %i\n", proxy->scfg->name, res); +		debug(DBG_PROXY, "%s: result was %i", proxy->scfg->name, res);  		uring_task_close_fd(cfg, task);  		proxy_delete(cfg, proxy);  		return; @@ -202,14 +202,14 @@ proxy_connected_cb(struct cfg *cfg, struct connection *conn, bool connected)  	assert_task_alive(DBG_PROXY, &proxy->servertask);  	if (!connected) { -		error("%s: proxy connection to remote server failed\n", +		error("%s: proxy connection to remote server failed",  		      proxy->scfg->name);  		proxy_delete(cfg, proxy);  		return;  	}  	proxy->sfd = proxy->servertask.fd; -	verbose("%s: proxy connection %s -> %s opened\n", +	verbose("%s: proxy connection %s -> %s opened",  		proxy->scfg->name,  		proxy->client_conn.remote.addrstr,  		proxy->server_conn.remote.addrstr);  | 
