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



##########
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:
       ```suggestion
         finfo("Write buffer size: %" PRIu32 " bytes\n", allocsize);
   ```
   `allocsize` is unsigned.




-- 
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-unsubscr...@nuttx.apache.org

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


Reply via email to