summaryrefslogtreecommitdiff
path: root/kernel/printk/index.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2023-02-23 13:49:45 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2023-02-23 13:49:45 -0800
commitd8763154455e92a2ffed256e48fa46bb35ef3bdf (patch)
treec340a9c1c152c7e9121e7d60ab53afe059442fee /kernel/printk/index.c
parentcd43b5068647f47d6936ffef4d15d99518fcab94 (diff)
parent392143c9f2a31a9faaf99a6f8639eae7e71b8e61 (diff)
downloadlinux-d8763154455e92a2ffed256e48fa46bb35ef3bdf.tar.gz
linux-d8763154455e92a2ffed256e48fa46bb35ef3bdf.tar.bz2
linux-d8763154455e92a2ffed256e48fa46bb35ef3bdf.zip
Merge tag 'printk-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux
Pull printk updates from Petr Mladek: - Refactor printk code for formatting messages that are shown on consoles. This is a preparatory step for introducing atomic consoles which could not share the global buffers - Prevent memory leak when removing printk index in debugfs - Dump also the newest printk message by the sample gdbmacro - Fix a compiler warning * tag 'printk-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux: printf: fix errname.c list kernel/printk/index.c: fix memory leak with using debugfs_lookup() printk: Use scnprintf() to print the message about the dropped messages on a console printk: adjust string limit macros printk: use printk_buffers for devkmsg printk: introduce console_prepend_dropped() for dropped messages printk: introduce printk_get_next_message() and printk_message printk: introduce struct printk_buffers console: Document struct console console: Use BIT() macros for @flags values printk: move size limit macros into internal.h docs: gdbmacros: print newest record
Diffstat (limited to 'kernel/printk/index.c')
-rw-r--r--kernel/printk/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/index.c b/kernel/printk/index.c
index c85be186a783..a6b27526baaf 100644
--- a/kernel/printk/index.c
+++ b/kernel/printk/index.c
@@ -145,7 +145,7 @@ static void pi_create_file(struct module *mod)
#ifdef CONFIG_MODULES
static void pi_remove_file(struct module *mod)
{
- debugfs_remove(debugfs_lookup(pi_get_module_name(mod), dfs_index));
+ debugfs_lookup_and_remove(pi_get_module_name(mod), dfs_index);
}
static int pi_module_notify(struct notifier_block *nb, unsigned long op,