TG3_VER_SIZE
if (TG3_VER_SIZE - dst_off < 16 ||
snprintf(&tp->fw_ver[dst_off], TG3_VER_SIZE - dst_off,
strncat(tp->fw_ver, "sb", TG3_VER_SIZE - strlen(tp->fw_ver) - 1);
snprintf(&tp->fw_ver[offset], TG3_VER_SIZE - offset,
if (offset < TG3_VER_SIZE - 1)
if (vlen > TG3_VER_SIZE - sizeof(v)) {
memcpy(&tp->fw_ver[vlen], &v, TG3_VER_SIZE - vlen);
snprintf(&tp->fw_ver[vlen], TG3_VER_SIZE - vlen, " %s v%d.%d.%d.%d",
snprintf(&tp->fw_ver[vlen], TG3_VER_SIZE - vlen, " .%02d", ver);
tp->fw_ver[TG3_VER_SIZE - 1] = 0;
char fw_ver[TG3_VER_SIZE];