summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2021-09-14 14:06:38 +0200
committertiptorrent development team <tiptorrent@soleta.eu>2021-09-29 15:48:26 +0200
commita23722910e703e7464ebc6b0447c719937e2850e (patch)
tree69dff35d8b23462e50d18ead8dcff1d9b7b5e0f2 /src
parent5a7d9644e4712bde19bc9b01f8ae198c0d9b0fe9 (diff)
specify current state when displaying unknown error
Diffstat (limited to 'src')
-rw-r--r--src/core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core.c b/src/core.c
index f46df39..fa1bf73 100644
--- a/src/core.c
+++ b/src/core.c
@@ -188,8 +188,8 @@ static void tip_client_read_cb(struct ev_loop *loop, struct ev_io *io, int event
inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
goto close;
default:
- syslog(LOG_ERR, "unknown read state, critical internal error for %s:%hu\n",
- inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
+ syslog(LOG_ERR, "unknown read state %d, critical internal error for %s:%hu\n",
+ cli->state, inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
goto close;
}
return;
@@ -295,8 +295,8 @@ static void tip_client_write_cb(struct ev_loop *loop, struct ev_io *io, int even
}
break;
default:
- syslog(LOG_ERR, "unknown write state, critical internal error for %s:%hu\n",
- inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
+ syslog(LOG_ERR, "unknown write state %d, critical internal error for %s:%hu\n",
+ cli->state, inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port));
goto close;
}
return;