[PATCH] fix comment for __printk_ratelimit
From: Uwe Kleine-KÃnig
Date: Wed May 21 2008 - 06:23:57 EST
The comment assumed ratelimit_burst to be one and used an old name for
ratelimit_jiffies.
I also reintended the comment.
Signed-off-by: Uwe Kleine-KÃnig <Uwe.Kleine-Koenig@xxxxxxxx>
---
kernel/printk.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/printk.c b/kernel/printk.c
index 8fb01c3..f1c3c1c 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -1323,9 +1323,8 @@ void tty_write_message(struct tty_struct *tty, char *msg)
/*
* printk rate limiting, lifted from the networking subsystem.
*
- * This enforces a rate limit: not more than one kernel message
- * every printk_ratelimit_jiffies to make a denial-of-service
- * attack impossible.
+ * This enforces a rate limit: not more than @ratelimit_burst kernel message
+ * every @ratelimit_jiffies to make a denial-of-service attack impossible.
*/
int __printk_ratelimit(int ratelimit_jiffies, int ratelimit_burst)
{
--
1.5.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/