Ooops, fix the ratelimit.

This commit is contained in:
Alexander Leidinger 2007-01-20 11:31:14 +00:00
parent 456ede3976
commit f0cad96d23
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166141

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