You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/12/27 02:20:13 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #5077: driver/rwbuffer: Fix the compiler warning

xiaoxiang781216 commented on a change in pull request #5077:
URL: https://github.com/apache/incubator-nuttx/pull/5077#discussion_r775312809



##########
File path: drivers/rwbuffer.c
##########
@@ -839,11 +839,11 @@ int rwb_initialize(FAR struct rwbuffer_s *rwb)
       rwb->wrbuffer = kmm_malloc(allocsize);
       if (!rwb->wrbuffer)
         {
-          ferr("Write buffer kmm_malloc(%d) failed\n", allocsize);
+          ferr("Write buffer kmm_malloc(%"PRId32") failed\n", allocsize);
           return -ENOMEM;
         }
 
-      finfo("Write buffer size: %d bytes\n", allocsize);
+      finfo("Write buffer size: %"PRId32" bytes\n", allocsize);

Review comment:
       Done.




-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org