Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2010 22:24:39 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r209115 - head/sys/dev/cxgb
Message-ID:  <201006122224.o5CMOdDw030488@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Sat Jun 12 22:24:39 2010
New Revision: 209115
URL: http://svn.freebsd.org/changeset/base/209115

Log:
  make format string a string literal.
  
  Reported by:	clang

Modified:
  head/sys/dev/cxgb/cxgb_main.c

Modified: head/sys/dev/cxgb/cxgb_main.c
==============================================================================
--- head/sys/dev/cxgb/cxgb_main.c	Sat Jun 12 21:14:22 2010	(r209114)
+++ head/sys/dev/cxgb/cxgb_main.c	Sat Jun 12 22:24:39 2010	(r209115)
@@ -980,7 +980,7 @@ cxgb_makedev(struct port_info *pi)
 {
 	
 	pi->port_cdev = make_dev(&cxgb_cdevsw, pi->ifp->if_dunit,
-	    UID_ROOT, GID_WHEEL, 0600, if_name(pi->ifp));
+	    UID_ROOT, GID_WHEEL, 0600, "%s", if_name(pi->ifp));
 	
 	if (pi->port_cdev == NULL)
 		return (ENOMEM);



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