mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
trivial printk changes for 6.11
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEESH4wyp42V4tXvYsjUqAMR0iAlPIFAmaiUQcACgkQUqAMR0iA lPITNQ/+KDdmQljKwpuXlqe01F1mG/LFn5i1Y/a8fZVep/OSmihsgnEqnYzBomTq CF22tlrH7r6EZ2D5by1fjno/AG6/BAXvwH8jGDr9jhVNNBsneeVYrtMB1UUslR/e OEFoFKyzpq6VJNmHl5aAM95CEFEkE5uBba4DkJ/hCh3oErc2zP5DRdD9COCkdlIp +LzQa6XsMjwzrWAMAm2vWdBgePCHVKsAVVFUdfmN28FQw3BcFZEgIvN7vPT7Ee3I ESKx/Asb3myb1J7bFvDKnpT9O+7EkU/cpQn+HxjiIFVPqFLX3mfSXzgvfNocuPB0 hkIUzA9Sbu2wa+SE7qU1IwHVZj2N612OPso8lG8cbcic/KaYLpd6Kt7bnJe8kBe7 gFGBVmDjvapilQwWteWJcMs2hBxXuq0Xd+CMcXTMKYcLS8Z+4TVAYA8onssrUq+0 Jye8hW/CvST/P7wazVtuQu1fsKKz3SG+dAaXw9/7fYTGQ2LdRoLUkDhLkwqIURjD j6+pMMuYpxrpeA7yaOD1xLLOKC33OINClgfodjGVHvDlwxsQBhZFchCKsbufYEa1 CxFi8lDcfNVSGuw5x3a6iMqwnqxoeVKpi6eKKgpU81fXnGd4G2NA5jGRMycWmqzX +uUq6Ot1NO4QVK+pT70GhXMt2rQ6UsC1SyWggeFYBhaaqfIGKRk= =89Nl -----END PGP SIGNATURE----- Merge tag 'printk-for-6.11-trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux Pull printk updates from Petr Mladek: - trivial printk changes The bigger "real" printk work is still being discussed. * tag 'printk-for-6.11-trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux: vsprintf: add missing MODULE_DESCRIPTION() macro printk: Rename console_replay_all() and update context
This commit is contained in:
commit
8bf100092d
@ -452,7 +452,7 @@ static const struct sysrq_key_op sysrq_unrt_op = {
|
||||
|
||||
static void sysrq_handle_replay_logs(u8 key)
|
||||
{
|
||||
console_replay_all();
|
||||
console_try_replay_all();
|
||||
}
|
||||
static struct sysrq_key_op sysrq_replay_logs_op = {
|
||||
.handler = sysrq_handle_replay_logs,
|
||||
|
@ -196,7 +196,7 @@ void show_regs_print_info(const char *log_lvl);
|
||||
extern asmlinkage void dump_stack_lvl(const char *log_lvl) __cold;
|
||||
extern asmlinkage void dump_stack(void) __cold;
|
||||
void printk_trigger_flush(void);
|
||||
void console_replay_all(void);
|
||||
void console_try_replay_all(void);
|
||||
#else
|
||||
static inline __printf(1, 0)
|
||||
int vprintk(const char *s, va_list args)
|
||||
@ -276,7 +276,7 @@ static inline void dump_stack(void)
|
||||
static inline void printk_trigger_flush(void)
|
||||
{
|
||||
}
|
||||
static inline void console_replay_all(void)
|
||||
static inline void console_try_replay_all(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
@ -4372,15 +4372,15 @@ void kmsg_dump_rewind(struct kmsg_dump_iter *iter)
|
||||
EXPORT_SYMBOL_GPL(kmsg_dump_rewind);
|
||||
|
||||
/**
|
||||
* console_replay_all - replay kernel log on consoles
|
||||
* console_try_replay_all - try to replay kernel log on consoles
|
||||
*
|
||||
* Try to obtain lock on console subsystem and replay all
|
||||
* available records in printk buffer on the consoles.
|
||||
* Does nothing if lock is not obtained.
|
||||
*
|
||||
* Context: Any context.
|
||||
* Context: Any, except for NMI.
|
||||
*/
|
||||
void console_replay_all(void)
|
||||
void console_try_replay_all(void)
|
||||
{
|
||||
if (console_trylock()) {
|
||||
__console_rewind_all();
|
||||
|
@ -824,4 +824,5 @@ static void __init selftest(void)
|
||||
|
||||
KSTM_MODULE_LOADERS(test_printf);
|
||||
MODULE_AUTHOR("Rasmus Villemoes <linux@rasmusvillemoes.dk>");
|
||||
MODULE_DESCRIPTION("Test cases for printf facility");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -810,4 +810,5 @@ static void __init selftest(void)
|
||||
|
||||
KSTM_MODULE_LOADERS(test_scanf);
|
||||
MODULE_AUTHOR("Richard Fitzgerald <rf@opensource.cirrus.com>");
|
||||
MODULE_DESCRIPTION("Test cases for sscanf facility");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
Loading…
Reference in New Issue
Block a user