Skip to content

Commit cef8784

Browse files
author
Erlang/OTP
committed
Merge branch 'raimo/erts/inet_drv-debug-bug' into maint-26
* raimo/erts/inet_drv-debug-bug: Better store port as a pointer
2 parents 731e75c + b6b1c61 commit cef8784

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

erts/emulator/drivers/common/inet_drv.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12905,10 +12905,10 @@ static int tcp_inet_input(tcp_descriptor* desc, HANDLE event)
1290512905
{
1290612906
int ret = 0;
1290712907
#ifdef DEBUG
12908-
long port = (long) desc->inet.port; /* Used after driver_exit() */
12908+
void *port = desc->inet.port; /* Used after driver_exit() */
1290912909
#endif
1291012910
ASSERT(!INET_IGNORED(INETP(desc)));
12911-
DEBUGF(("tcp_inet_input(%lx) {s=%d\r\n", port, desc->inet.s));
12911+
DEBUGF(("tcp_inet_input(%p) {s=%d\r\n", port, desc->inet.s));
1291212912
if (desc->inet.state == INET_STATE_ACCEPTING) {
1291312913
SOCKET s;
1291412914
unsigned int len;
@@ -13045,11 +13045,11 @@ static int tcp_inet_input(tcp_descriptor* desc, HANDLE event)
1304513045
else {
1304613046
/* maybe a close op from connection attempt?? */
1304713047
sock_select(INETP(desc),FD_ACCEPT,0);
13048-
DEBUGF(("tcp_inet_input(%lx): s=%d bad state: %04x\r\n",
13048+
DEBUGF(("tcp_inet_input(%p): s=%d bad state: %04x\r\n",
1304913049
port, desc->inet.s, desc->inet.state));
1305013050
}
1305113051
done:
13052-
DEBUGF(("tcp_inet_input(%lx) }\r\n", port));
13052+
DEBUGF(("tcp_inet_input(%p) }\r\n", port));
1305313053
return ret;
1305413054
}
1305513055

0 commit comments

Comments
 (0)