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/16 16:31:26 UTC

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

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


##########
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:
   Is `printflike` applicable to typedefs?



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