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);
}
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"