xiaoxiang781216 commented on code in PR #8075: URL: https://github.com/apache/nuttx/pull/8075#discussion_r1068074189
########## fs/mmap/fs_rammap.c: ########## @@ -176,7 +175,7 @@ int rammap(FAR struct file *filep, FAR struct mm_map_entry_s *entry, rdbuffer = kernel ? kmm_malloc(length) : kumm_malloc(length); if (!rdbuffer) { - ferr("ERROR: Region allocation failed, length: %d\n", (int)length); + ferr("ERROR: Region allocation failed, length: %zu\n", length); Review Comment: yes, since printf is provided by nuttx self. Actually, we just need avoid c99 language feature from compiler, the new feature for library which is already supported by NuttX is fine to use. -- 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