From 7b3b5a5d5bdf87bfff9430b615bbc95ed9b6f1a8 Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Wed, 12 Mar 2014 08:03:24 -0700 Subject: [PATCH] ofp-print: __attribute__ format in visual studio. Visual studio does not understand __attribute__ format. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- lib/ofp-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 06e64f662..5b533663a 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -572,7 +572,7 @@ ofp_print_switch_config(struct ds *string, const struct ofp_switch_config *osc) static void print_wild(struct ds *string, const char *leader, int is_wild, int verbosity, const char *format, ...) - __attribute__((format(printf, 5, 6))); + PRINTF_FORMAT(5, 6); static void print_wild(struct ds *string, const char *leader, int is_wild, int verbosity, const char *format, ...) -- 2.47.0