Don't pass a buffer directly as a printflike format string.

Found by: clang
MFC after:	1 month
This commit is contained in:
Matt Jacob 2010-06-10 19:38:07 +00:00
parent 60743cbd22
commit 8340692f44

View File

@ -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);
}
}