diff options
author | netchild <netchild@FreeBSD.org> | 2007-01-20 11:31:14 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2007-01-20 11:31:14 +0000 |
commit | d1c3c94c604d27fe2d26ffdfc1d7fb534261fe92 (patch) | |
tree | d40bc73118d9bd513c5f68a90e5dc2d29ed44024 /sys/compat | |
parent | 22ce9c2574c61544e9f22899bcf121f2d63ee13d (diff) | |
download | FreeBSD-src-d1c3c94c604d27fe2d26ffdfc1d7fb534261fe92.zip FreeBSD-src-d1c3c94c604d27fe2d26ffdfc1d7fb534261fe92.tar.gz |
Ooops, fix the ratelimit.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index d7514b6..f66766f 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -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); |