Ooops, fix the ratelimit.

This commit is contained in:
netchild 2007-01-20 11:31:14 +00:00
parent 22ce9c2574
commit d1c3c94c60

View File

@ -473,9 +473,11 @@ linprocfs_doprocstat(PFS_FILL_ARGS)
if (kp.ki_stat > sizeof(linux_state)) {
state = 'R';
if (ratelimit == 0)
if (ratelimit == 0) {
printf("linprocfs: don't know how to handle unknown FreeBSD state %d/%d, mapping to R\n",
kp.ki_stat, sizeof(linux_state));
++ratelimit;
}
} else
state = linux_state[kp.ki_stat - 1];
PS_ADD("state", "%c", state);