Ooops, fix the ratelimit.

This commit is contained in:
Alexander Leidinger 2007-01-20 11:31:14 +00:00
parent 456ede3976
commit f0cad96d23

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