From 020a411533b1fc55c04f2b96f24db07003f1de37 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 8 Jan 2009 15:27:35 -0800 Subject: [PATCH] vlog: Mark format_log_message() as taking a printf format string. Found by -Wmissing-format-attribute. --- lib/vlog.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/vlog.c b/lib/vlog.c index ddfab761..0ebe890f 100644 --- a/lib/vlog.c +++ b/lib/vlog.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford +/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation @@ -98,6 +98,11 @@ static long long int boot_time; static char *log_file_name; static FILE *log_file; +static void format_log_message(enum vlog_module, enum vlog_level, + enum vlog_facility, unsigned int msg_num, + const char *message, va_list, struct ds *) + PRINTF_FORMAT(5, 0); + /* Searches the 'n_names' in 'names'. Returns the index of a match for * 'target', or 'n_names' if no name matches. */ static size_t -- 2.30.2