drivers/loop/losetup.c: Fix syslog format errors

This commit is contained in:
YAMAMOTO Takashi 2020-11-20 11:48:17 +09:00 committed by Xiang Xiao
parent 1c3ae7f01e
commit 0bb7b44976
1 changed files with 2 additions and 2 deletions

View File

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