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,
     ^
This commit is contained in:
Uwe Hermann 2018-02-09 21:25:18 +01:00
parent 93b5cd6919
commit 3347fe26a0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}