eal: fix usage of printf-like functions
[dpdk.git] / lib / librte_eal / common / include / rte_string_fns.h
index b933784..bbb8c5b 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"