From: MichaƂ Janiszewski Date: Wed, 31 Oct 2018 21:17:20 +0000 (+0100) Subject: beaglelogic: Fix mismatched printf specifiers. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e3f86ef5fc4e5061a19b4af72727077797446fbd;p=libsigrok.git beaglelogic: Fix mismatched printf specifiers. --- diff --git a/src/hardware/beaglelogic/beaglelogic_tcp.c b/src/hardware/beaglelogic/beaglelogic_tcp.c index 9cf78bbf..e06a19a8 100644 --- a/src/hardware/beaglelogic/beaglelogic_tcp.c +++ b/src/hardware/beaglelogic/beaglelogic_tcp.c @@ -272,7 +272,7 @@ static int beaglelogic_set_buffersize(struct dev_context *devc) int ret; char *resp; - beaglelogic_tcp_send_cmd(devc, "memalloc %lu", devc->buffersize); + beaglelogic_tcp_send_cmd(devc, "memalloc %" PRIu32, devc->buffersize); ret = beaglelogic_tcp_get_string(devc, NULL, &resp); if (ret == SR_OK && !g_ascii_strncasecmp(resp, "ok", 2)) ret = SR_OK; @@ -301,7 +301,7 @@ static int beaglelogic_set_samplerate(struct dev_context *devc) int ret; char *resp; - beaglelogic_tcp_send_cmd(devc, "samplerate %lu", + beaglelogic_tcp_send_cmd(devc, "samplerate %" PRIu32, (uint32_t)devc->cur_samplerate); ret = beaglelogic_tcp_get_string(devc, NULL, &resp); if (ret == SR_OK && !g_ascii_strncasecmp(resp, "ok", 2)) @@ -325,7 +325,7 @@ static int beaglelogic_set_sampleunit(struct dev_context *devc) int ret; char *resp; - beaglelogic_tcp_send_cmd(devc, "sampleunit %lu", devc->sampleunit); + beaglelogic_tcp_send_cmd(devc, "sampleunit %" PRIu32, devc->sampleunit); ret = beaglelogic_tcp_get_string(devc, NULL, &resp); if (ret == SR_OK && !g_ascii_strncasecmp(resp, "ok", 2)) ret = SR_OK; @@ -348,7 +348,7 @@ static int beaglelogic_set_triggerflags(struct dev_context *devc) int ret; char *resp; - beaglelogic_tcp_send_cmd(devc, "triggerflags %lu", devc->triggerflags); + beaglelogic_tcp_send_cmd(devc, "triggerflags %" PRIu32, devc->triggerflags); ret = beaglelogic_tcp_get_string(devc, NULL, &resp); if (ret == SR_OK && !g_ascii_strncasecmp(resp, "ok", 2)) ret = SR_OK; @@ -390,7 +390,7 @@ static int beaglelogic_set_bufunitsize(struct dev_context *devc) int ret; char *resp; - beaglelogic_tcp_send_cmd(devc, "bufunitsize %ld", devc->bufunitsize); + beaglelogic_tcp_send_cmd(devc, "bufunitsize %" PRIu32, devc->bufunitsize); ret = beaglelogic_tcp_get_string(devc, NULL, &resp); if (ret == SR_OK && !g_ascii_strncasecmp(resp, "ok", 2)) ret = SR_OK;