Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jun 2010 19:38:07 +0000 (UTC)
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r208997 - head/sys/dev/isp
Message-ID:  <201006101938.o5AJc7CT044899@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjacob
Date: Thu Jun 10 19:38:07 2010
New Revision: 208997
URL: http://svn.freebsd.org/changeset/base/208997

Log:
  Don't pass a buffer directly as a printflike format string.
  Found by: clang
  MFC after:	1 month

Modified:
  head/sys/dev/isp/isp_library.c

Modified: head/sys/dev/isp/isp_library.c
==============================================================================
--- head/sys/dev/isp/isp_library.c	Thu Jun 10 19:11:00 2010	(r208996)
+++ head/sys/dev/isp/isp_library.c	Thu Jun 10 19:38:07 2010	(r208997)
@@ -344,7 +344,7 @@ isp_print_qentry(ispsoftc_t *isp, const 
 		for (j = 0; j < (QENTRY_LEN >> 2); j++) {
 			ISP_SNPRINTF(buf, TBA, "%s %02x", buf, ptr[amt++] & 0xff);
 		}
-		isp_prt(isp, ISP_LOGALL, buf);
+		isp_prt(isp, ISP_LOGALL, "%s", buf);
 	}
 }
 



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