Commit e99aa461 authored by Alex Elder's avatar Alex Elder Committed by Linus Torvalds
Browse files

printk: use a clever macro

Use the IS_ENABLED() macro rather than #ifdef blocks to set certain
global values.
Signed-off-by: default avatarAlex Elder <>
Acked-by: default avatarBorislav Petkov <>
Reviewed-by: default avatarPetr Mladek <>
Cc: Andi Kleen <>
Cc: Jan Kara <>
Cc: John Stultz <>
Cc: Steven Rostedt <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 0b90fec3
......@@ -454,11 +454,7 @@ static int log_store(int facility, int level,
return msg->text_len;
int dmesg_restrict = 1;
int dmesg_restrict;
static int syslog_action_restricted(int type)
......@@ -988,11 +984,7 @@ static inline void boot_delay_msec(int level)
static bool printk_time = 1;
static bool printk_time;
static bool printk_time = IS_ENABLED(CONFIG_PRINTK_TIME);
module_param_named(time, printk_time, bool, S_IRUGO | S_IWUSR);
static size_t print_time(u64 ts, char *buf)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment