diff options
author | mjacob <mjacob@FreeBSD.org> | 2010-06-10 19:38:07 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2010-06-10 19:38:07 +0000 |
commit | 88ae17c7ef1b0e23829cd4e275aeb58b58df7609 (patch) | |
tree | ed0bcb30b8073b9bb8f73f39573c9eff984c0641 /sys/dev/isp/isp_library.c | |
parent | 46bba0ff8197340b7456ab1725382d7ed4976fdd (diff) | |
download | FreeBSD-src-88ae17c7ef1b0e23829cd4e275aeb58b58df7609.zip FreeBSD-src-88ae17c7ef1b0e23829cd4e275aeb58b58df7609.tar.gz |
Don't pass a buffer directly as a printflike format string.
Found by: clang
MFC after: 1 month
Diffstat (limited to 'sys/dev/isp/isp_library.c')
-rw-r--r-- | sys/dev/isp/isp_library.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_library.c b/sys/dev/isp/isp_library.c index e1b508a..daad0c5 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); } } |