]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Add XFS messages to printk index
authorJonathan Lassoff <jof@thejof.com>
Mon, 11 Apr 2022 03:06:39 +0000 (13:06 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 11 Apr 2022 03:06:39 +0000 (13:06 +1000)
commite893e7df447647e4338f61e2d501e41f859e4c1e
tree545138563e61a0c51677a2a0d5f17306bf2b8db5
parent9b3011d21a2d25c58e08698e07c31ea74ce11372
xfs: Add XFS messages to printk index

In order for end users to quickly react to new issues that come up in
production, it is proving useful to leverage the printk indexing system.

This printk index enables kernel developers to use calls to printk()
with changeable format strings (as they always have; no change of
expectations), while enabling end users to examine format strings to
detect changes.
Since end users are using regular expressions to match messages printed
through printk(), being able to detect changes in chosen format strings
from release to release provides a useful signal to review
printk()-matching regular expressions for any necessary updates.

So that detailed XFS messages are captures by this printk index, this
patch wraps the xfs_<level> and xfs_alert_tag functions.

Signed-off-by: Jonathan Lassoff <jof@thejof.com>
Reviewed-by: Chris Down <chris@chrisdown.name>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_message.c
fs/xfs/xfs_message.h