From 344f7861b4386eee29aaf652d8a5390bbca12d74 Mon Sep 17 00:00:00 2001 From: Christof Arnosti Date: Sat, 14 Mar 2020 17:53:28 +0100 Subject: usb-serial-for-android: Use correct format spezifier for size_t Signed-off-by: Christof Arnosti --- core/serial_usb_android.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/serial_usb_android.cpp b/core/serial_usb_android.cpp index d53453a47..5686d06d8 100644 --- a/core/serial_usb_android.cpp +++ b/core/serial_usb_android.cpp @@ -123,7 +123,7 @@ static dc_status_t serial_usb_android_get_available (void *io, size_t *value) static dc_status_t serial_usb_android_read(void *io, void *data, size_t size, size_t *actual) { - TRACE (device->context, "%s: size: %i", __FUNCTION__, size); + TRACE (device->context, "%s: size: %zu", __FUNCTION__, size); QAndroidJniObject *device = static_cast(io); if (device == NULL) @@ -152,7 +152,7 @@ static dc_status_t serial_usb_android_read(void *io, void *data, size_t size, si static dc_status_t serial_usb_android_write(void *io, const void *data, size_t size, size_t *actual) { - TRACE (device->context, "%s: size: %i", __FUNCTION__, size); + TRACE (device->context, "%s: size: %zu", __FUNCTION__, size); QAndroidJniObject *device = static_cast(io); if (device == NULL) -- cgit v1.2.3-70-g09d2