summaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/proxy.c b/proxy.c
index 7fb6c34..6ced85b 100644
--- a/proxy.c
+++ b/proxy.c
@@ -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);