From 06eace6376766b1e26f6c3a61c331758fe444c55 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Sat, 12 Jun 2010 22:24:39 +0000 Subject: [PATCH] make format string a string literal. Reported by: clang --- sys/dev/cxgb/cxgb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c index 7764d33f4d83..8dc81a6671cd 100644 --- a/sys/dev/cxgb/cxgb_main.c +++ b/sys/dev/cxgb/cxgb_main.c @@ -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);