mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:45:20 +08:00
drivers/loop/losetup.c: Fix syslog format errors
This commit is contained in:
committed by
Xiang Xiao
parent
1c3ae7f01e
commit
0bb7b44976
@@ -228,7 +228,7 @@ static ssize_t loop_read(FAR struct inode *inode, FAR unsigned char *buffer,
|
|||||||
nsectors * dev->sectsize);
|
nsectors * dev->sectsize);
|
||||||
if (nbytesread < 0 && nbytesread != -EINTR)
|
if (nbytesread < 0 && nbytesread != -EINTR)
|
||||||
{
|
{
|
||||||
ferr("ERROR: Read failed: %d\n", nbytesread);
|
ferr("ERROR: Read failed: %zd\n", nbytesread);
|
||||||
return (int)nbytesread;
|
return (int)nbytesread;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -275,7 +275,7 @@ static ssize_t loop_write(FAR struct inode *inode,
|
|||||||
nsectors * dev->sectsize);
|
nsectors * dev->sectsize);
|
||||||
if (nbyteswritten < 0 && nbyteswritten != -EINTR)
|
if (nbyteswritten < 0 && nbyteswritten != -EINTR)
|
||||||
{
|
{
|
||||||
ferr("ERROR: nx_write failed: %d\n", nbyteswritten);
|
ferr("ERROR: nx_write failed: %zd\n", nbyteswritten);
|
||||||
return nbyteswritten;
|
return nbyteswritten;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user