From 3ded359071f971e3e144f064a72a17c5bbe6be5a Mon Sep 17 00:00:00 2001 From: susisstrolch Date: Tue, 9 Feb 2016 10:15:15 +0100 Subject: [PATCH] fix: wrong printf parameter --- rest/rest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/rest.c b/rest/rest.c index 1eb1474..77a5b69 100644 --- a/rest/rest.c +++ b/rest/rest.c @@ -93,7 +93,7 @@ tcpclient_recv(void *arg, char *pdata, unsigned short len) { // collect body and send it int body_len = len-pi; - DBG("REST: status=%ld, body=%d\n", code, body_len); + DBG("REST: status=%d, body=%d\n", code, body_len); if (pi == len) { cmdResponseStart(CMD_RESP_CB, client->resp_cb, 1); cmdResponseBody(&code, sizeof(code));