make format string a string literal.

Reported by:	clang
This commit is contained in:
Navdeep Parhar 2010-06-12 22:24:39 +00:00
parent ed6e65a2fe
commit 06eace6376
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209115

View File

@ -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);