From 0bb7b44976bfb6a00124d80c2c8eac461aa85687 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 20 Nov 2020 11:48:17 +0900 Subject: [PATCH] drivers/loop/losetup.c: Fix syslog format errors --- drivers/loop/losetup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/loop/losetup.c b/drivers/loop/losetup.c index df2f8e77d9..427467cef9 100644 --- a/drivers/loop/losetup.c +++ b/drivers/loop/losetup.c @@ -228,7 +228,7 @@ static ssize_t loop_read(FAR struct inode *inode, FAR unsigned char *buffer, nsectors * dev->sectsize); if (nbytesread < 0 && nbytesread != -EINTR) { - ferr("ERROR: Read failed: %d\n", nbytesread); + ferr("ERROR: Read failed: %zd\n", nbytesread); return (int)nbytesread; } } @@ -275,7 +275,7 @@ static ssize_t loop_write(FAR struct inode *inode, nsectors * dev->sectsize); if (nbyteswritten < 0 && nbyteswritten != -EINTR) { - ferr("ERROR: nx_write failed: %d\n", nbyteswritten); + ferr("ERROR: nx_write failed: %zd\n", nbyteswritten); return nbyteswritten; } }