From: Ben Pfaff Date: Thu, 8 Jan 2009 23:27:35 +0000 (-0800) Subject: vlog: Mark format_log_message() as taking a printf format string. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=020a411533b1fc55c04f2b96f24db07003f1de37;p=openvswitch vlog: Mark format_log_message() as taking a printf format string. Found by -Wmissing-format-attribute. --- 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