xiaoxiang781216 commented on code in PR #13226:
URL: https://github.com/apache/nuttx/pull/13226#discussion_r1738908546


##########
fs/mnemofs/mnemofs.c:
##########
@@ -579,7 +579,7 @@ static ssize_t mnemofs_read(FAR struct file *filep, FAR 
char *buffer,
                           buffer, buflen);
   if (ret < 0)
     {
-      finfo("Error while reading. Ret: %d.", ret);
+      finfo("Error while reading. Ret: %ld.", ret);

Review Comment:
   ```suggestion
         finfo("Error while reading. Ret: %zd.", ret);
   ```



##########
fs/mnemofs/mnemofs.c:
##########
@@ -593,7 +593,7 @@ static ssize_t mnemofs_read(FAR struct file *filep, FAR 
char *buffer,
   nxmutex_unlock(&MFS_LOCK(sb));
 
 errout:
-  finfo("Mnemofs read exited with %d.", ret);
+  finfo("Mnemofs read exited with %ld.", ret);

Review Comment:
   please change ALL size_t/ssize_ to zu/zd in your code.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to