mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
fs/seq_file.c: seq_read: Update pr_info_ratelimited
Use a more common logging style. Add and use pr_fmt, coalesce the format string, align arguments, use better grammar. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Cc: Vasily Averin <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
898310032b
commit
a396301578
1 file changed
+4
-3
+4
-3
@@ -6,6 +6,8 @@
|
||||
* initial implementation -- AV, Oct 2001.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/cache.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/export.h>
|
||||
@@ -233,9 +235,8 @@ Fill:
|
||||
|
||||
p = m->op->next(m, p, &m->index);
|
||||
if (pos == m->index) {
|
||||
pr_info_ratelimited("buggy seq_file .next function %ps "
|
||||
"did not updated position index\n",
|
||||
m->op->next);
|
||||
pr_info_ratelimited("buggy .next function %ps did not update position index\n",
|
||||
m->op->next);
|
||||
m->index++;
|
||||
}
|
||||
if (!p || IS_ERR(p)) {
|
||||
|
||||
Reference in new issue
Block a user