From b3911fc84fe9dd269fd53b1c9767433f84050415 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 31 Jul 2015 13:11:35 +0800 Subject: [PATCH] fix a build issue --- src/udprelay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udprelay.c b/src/udprelay.c index fc509410..a9cb2de7 100644 --- a/src/udprelay.c +++ b/src/udprelay.c @@ -641,7 +641,7 @@ static void remote_recv_cb(EV_P_ ev_io *w, int revents) // Drop large packets > default MTU if (buf_len > MTU) { - LOGE("[udp] drop large packets, size: %ld", buf_len); + LOGE("[udp] drop large packets, size: %d", (int)buf_len); goto CLEAN_UP; } @@ -835,7 +835,7 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents) // Drop large packets > default MTU if (buf_len > MTU) { - LOGE("[udp] drop large packets, size: %ld", buf_len); + LOGE("[udp] drop large packets, size: %d", (int)buf_len); goto CLEAN_UP; }