aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/common/inet_drv.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-03-28 09:56:29 +0100
committerLukas Larsson <[email protected]>2014-03-28 09:56:29 +0100
commit547aa83f94c6614757e9033849c0c13563930300 (patch)
tree1f586be3fba4fbb6f76e773f1b67bf4d63ff69b5 /erts/emulator/drivers/common/inet_drv.c
parentd2a5dc042c02dce5bc518eb576ea496af50e6373 (diff)
downloadotp-547aa83f94c6614757e9033849c0c13563930300.tar.gz
otp-547aa83f94c6614757e9033849c0c13563930300.tar.bz2
otp-547aa83f94c6614757e9033849c0c13563930300.zip
erts: Move debug printout to eliminate gcc warning
Diffstat (limited to 'erts/emulator/drivers/common/inet_drv.c')
-rw-r--r--erts/emulator/drivers/common/inet_drv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/drivers/common/inet_drv.c b/erts/emulator/drivers/common/inet_drv.c
index e33594b026..09bada457d 100644
--- a/erts/emulator/drivers/common/inet_drv.c
+++ b/erts/emulator/drivers/common/inet_drv.c
@@ -9717,13 +9717,13 @@ static int tcp_remain(tcp_descriptor* desc, int* len)
int n = desc->i_ptr - ptr; /* number of bytes read */
int tlen;
- DEBUGF(("tcp_remain(%ld): s=%d, n=%d, nfill=%d nsz=%d, tlen %d\r\n",
- (long)desc->inet.port, desc->inet.s, n, nfill, nsz, tlen));
-
tlen = packet_get_length(desc->inet.htype, ptr, n,
desc->inet.psize, desc->i_bufsz,
&desc->http_state);
+ DEBUGF(("tcp_remain(%ld): s=%d, n=%d, nfill=%d nsz=%d, tlen %d\r\n",
+ (long)desc->inet.port, desc->inet.s, n, nfill, nsz, tlen));
+
if (tlen > 0) {
if (tlen <= n) { /* got a packet */
*len = tlen;