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 2022/07/17 06:02:37 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6632: Add printflike and scanflike to all printf/scanf like functions

xiaoxiang781216 commented on code in PR #6632:
URL: https://github.com/apache/incubator-nuttx/pull/6632#discussion_r922775117


##########
include/nuttx/usb/usbdev_trace.h:
##########
@@ -419,7 +419,7 @@ typedef uint16_t usbtrace_idset_t;
 
 /* Print routine to use for usbdev_trprint() output */
 
-typedef CODE int (*trprintf_t)(const char *fmt, ...);
+typedef CODE int (*trprintf_t)(const char *fmt, ...) printflike(1, 2);

Review Comment:
   The compiler doesn't report the error, so it should be applicable.



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