From: Uwe Hermann Date: Fri, 9 Feb 2018 20:25:18 +0000 (+0100) Subject: beaglelogic: Fix a compiler warning. X-Git-Url: http://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=3347fe26a08aaa337c9278f681ccded1c0ce3849 beaglelogic: Fix a compiler warning. beaglelogic_tcp.c: In function 'beaglelogic_tcp_send_cmd': beaglelogic_tcp.c:114:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' [-Wformat=] sr_dbg("Only sent %d/%lu bytes of command: '%s'.", out, ^ --- diff --git a/src/hardware/beaglelogic/beaglelogic_tcp.c b/src/hardware/beaglelogic/beaglelogic_tcp.c index c236c949..9cf78bbf 100644 --- a/src/hardware/beaglelogic/beaglelogic_tcp.c +++ b/src/hardware/beaglelogic/beaglelogic_tcp.c @@ -112,7 +112,7 @@ static int beaglelogic_tcp_send_cmd(struct dev_context *devc, } if (out < (int)strlen(buf)) { - sr_dbg("Only sent %d/%lu bytes of command: '%s'.", out, + sr_dbg("Only sent %d/%zu bytes of command: '%s'.", out, strlen(buf), buf); }