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/26 18:33:51 UTC

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

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



##########
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);

Review comment:
       ```suggestion
             ferr("Write buffer kmm_malloc(%" PRId32 ") failed\n", allocsize);
   ```
   nit: the string operands of the concatenation are usually separated by whitespaces. 




-- 
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