drivers/loop/losetup.c: Fix syslog format errors
This commit is contained in:
parent
1c3ae7f01e
commit
0bb7b44976
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue