From 8340692f44a91dc428c569abd7a41d5e34a16880 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Thu, 10 Jun 2010 19:38:07 +0000 Subject: [PATCH] Don't pass a buffer directly as a printflike format string. Found by: clang MFC after: 1 month --- sys/dev/isp/isp_library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/isp/isp_library.c b/sys/dev/isp/isp_library.c index e1b508afbfb2..daad0c56f41c 100644 --- a/sys/dev/isp/isp_library.c +++ b/sys/dev/isp/isp_library.c @@ -344,7 +344,7 @@ isp_print_qentry(ispsoftc_t *isp, const char *msg, int idx, void *arg) 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); } }