Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jun 2009 23:34:37 +0200
From:      Pawel Worach <pawel.worach@gmail.com>
To:        current@freebsd.org
Subject:   [patch] trivial warning fix for ndis_events
Message-ID:  <d227e09e0906211434qea2777fld01f8be14631b376@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

Here is a trival patch to fix the format string to match the data
argument in ndis_events.

$ clang -O2 -pipe -c ndis_events.c
ndis_events.c:268:57: warning: more data arguments than '%' conversions
      [-Wformat-extra-args]
        fprintf(stderr, "Usage: ndis_events [-a] [-d] [-v]\n", progname);
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^

Index: usr.sbin/wpa/ndis_events/ndis_events.c
===================================================================
--- usr.sbin/wpa/ndis_events/ndis_events.c	(revision 193093)
+++ usr.sbin/wpa/ndis_events/ndis_events.c	(working copy)
@@ -265,7 +265,7 @@
 usage(progname)
 	char			*progname;
 {
-	fprintf(stderr, "Usage: ndis_events [-a] [-d] [-v]\n", progname);
+	fprintf(stderr, "Usage: %s [-a] [-d] [-v]\n", progname);
 	exit(1);
 }


-- 
Pawel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d227e09e0906211434qea2777fld01f8be14631b376>