Don't pass a buffer directly as a printflike format string.
Found by: clang MFC after: 1 month
This commit is contained in:
parent
60743cbd22
commit
8340692f44
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user