kobject: define common logging prefix
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 11 Mar 2023 03:14:46 +0000 (03:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 14:15:19 +0000 (15:15 +0100)
commit984063339e9ec9b6d9b011169d1f330a505a7571
tree31e50e640edeff775f9d5b599b47a44132f0a1a0
parent410e7088e971ad656170fe9768b072b267a95310
kobject: define common logging prefix

All log messages start with the prefix "kobject: ".
Deduplicate this by using the pr_fmt() facility.

This makes the very long log strings shorter.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20230311-kobject-warning-v1-1-1ebba4f71fb5@weissschuh.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/kobject.c