diff options
author | Chris Down <chris@chrisdown.name> | 2021-06-15 19:52:48 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2021-07-19 12:56:40 +0300 |
commit | a1ad4b8a19566b11e0306f8b197f2fd4567340e5 (patch) | |
tree | e8df99fe0d779b338bf402f9e9995ea789ffa3b1 /kernel/printk/internal.h | |
parent | 91027d0a7a0e309b94674923dc1b245b709b5c1e (diff) | |
download | linux-a1ad4b8a19566b11e0306f8b197f2fd4567340e5.tar.xz |
printk: Straighten out log_flags into printk_info_flags
In the past, `enum log_flags` was part of `struct log`, hence the name.
`struct log` has since been reworked and now this struct is stored
inside `struct printk_info`. However, the name was never updated, which
is somewhat confusing -- especially since these flags operate at the
record level rather than at the level of an abstract log.
printk_info_flags also joins its other metadata struct friends in
printk_ringbuffer.h.
Signed-off-by: Chris Down <chris@chrisdown.name>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/3dd801982f02603e6e3aa4f8bc4f5ebb830a4949.1623775748.git.chris@chrisdown.name
Diffstat (limited to 'kernel/printk/internal.h')
-rw-r--r-- | kernel/printk/internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/printk/internal.h b/kernel/printk/internal.h index 51615c909b2f..1075e60fcd98 100644 --- a/kernel/printk/internal.h +++ b/kernel/printk/internal.h @@ -12,6 +12,12 @@ #define PRINTK_NMI_CONTEXT_OFFSET 0x010000000 +/* Flags for a single printk record. */ +enum printk_info_flags { + LOG_NEWLINE = 2, /* text ended with a newline */ + LOG_CONT = 8, /* text is a fragment of a continuation line */ +}; + __printf(4, 0) int vprintk_store(int facility, int level, const struct dev_printk_info *dev_info, |