summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christof Arnosti <charno@charno.ch>2020-03-14 17:53:28 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-16 07:58:20 -0700
commit344f7861b4386eee29aaf652d8a5390bbca12d74 (patch)
tree913bbf0beb345290b542328fd60f20ad1d8829de
parent779b84bfa02b3e11f295263971a693bef19c3f9e (diff)
downloadsubsurface-344f7861b4386eee29aaf652d8a5390bbca12d74.tar.gz
usb-serial-for-android: Use correct format spezifier for size_t
Signed-off-by: Christof Arnosti <charno@charno.ch>
-rw-r--r--core/serial_usb_android.cpp4
1 files changed, 2 insertions, 2 deletions
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<QAndroidJniObject *>(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<QAndroidJniObject *>(io);
if (device == NULL)