]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/include/rte_string_fns.h
eal: fix usage of printf-like functions
[dpdk.git] / lib / librte_eal / common / include / rte_string_fns.h
index b93378425ce44bbbd581bcb9ab777ddf55ef93ca..bbb8c5ba55c77fc192cfc1333dc3ea7f03fb8bbd 100644 (file)
@@ -68,7 +68,8 @@ extern "C" {
  *
  */
 int
-rte_snprintf(char *buffer, int buflen, const char *format, ...);
+rte_snprintf(char *buffer, int buflen, const char *format, ...)
+       __attribute__((format(printf,3,4)));
 
 /**
  * Takes string "string" parameter and splits it at character "delim"