[PATCH] fix comment for __printk_ratelimit

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Uwe Kleine-König
Date: Wednesday, May 21, 2008 - 3:20 am

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@digi.com>
---
 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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] fix comment for __printk_ratelimit, Uwe Kleine-König, (Wed May 21, 3:20 am)
[PATCH] fix comment for printk rate limiting, Uwe Kleine-König, (Tue Jul 29, 12:39 am)