summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-03-06 19:45:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-03-08 08:02:01 +0100
commit9eb0055d0ae9b08b0c03be72bc761657402483c3 (patch)
tree4d851ba60b473f3046624eeabc0a445d69a487ca /include/linux
parent2c04db06987189ec310f2f02a532604206b8cac5 (diff)
downloadbarebox-9eb0055d0ae9b08b0c03be72bc761657402483c3.tar.gz
barebox-9eb0055d0ae9b08b0c03be72bc761657402483c3.tar.xz
commands: dmesg: support aborting dmesg output with ctrl-c
dmesg output can get very long, especially if debug messages are compiled in and the maximum number of retained log messages is increased. Therefore, follow what we do for other potentially long-running commands and allow the user to abort it with ctrl+c. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240306184519.626594-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/printk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h
index 0e9604bbe9..07403ea60c 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -189,7 +189,7 @@ extern void log_clean(unsigned int limit);
#define BAREBOX_LOG_PRINT_TIME BIT(0)
int log_writefile(const char *filepath);
-void log_print(unsigned flags, unsigned levels);
+int log_print(unsigned flags, unsigned levels);
struct va_format {
const char *fmt;