This series implements dmesg -n to specify the console loglevel via dmesg command as an alternative to setting global.loglevel directly. While at it allow specifying loglevels as numbers and not only as strings. Sascha Hauer (5): dmesg: factor out str_to_loglevel() dmesg: error out on unknown loglevels dmesg: allow loglevels specified as numbers dmesg: implement dmesg -n dmesg: udpate help commands/dmesg.c | 89 ++++++++++++++++++++++++++++++++---------- include/linux/printk.h | 10 ----- 2 files changed, 68 insertions(+), 31 deletions(-) -- 2.39.2