我在 tcp_cubic.c中包含了以下printk语句
static u32 bictcp_recalc_ssthresh(struct sock *sk)
{
..
if (tp->snd_cwnd < ca->last_max_cwnd && fast_convergence)
ca->last_max_cwnd = (tp->snd_cwnd * (BICTCP_BETA_SCALE + beta))
/ (2 * BICTCP_BETA_SCALE);
else
ca->last_max_cwnd = tp->snd_cwnd;
ca->loss_cwnd = tp->snd_cwnd;
printk(KERN_INFO "ssthresh is %s", snd_cwnd); // <<<--- here
return max((tp->snd_cwnd * beta) / BICTCP_BETA_SCALE, 2U);
}
但它不会打印 dmesg 或 syslog 中的值。这是为什么?