From: Ben Hutchings Date: Sun, 1 Oct 2017 14:39:34 +0000 (+0100) Subject: tools/lib/lockdep: Define pr_cont() X-Git-Tag: archive/raspbian/4.15.4-1+rpi1~1^2^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3a44241658bbf556ddabd286a5c9b616e21f317b;p=linux.git tools/lib/lockdep: Define pr_cont() lockdep.c now also uses pr_cont(), so we need to implement it in liblockdep. It is currently always used to continue warning lines, so define pr_cont() the same as pr_warn(). If this changes, we might need to record the last log level in a TLS variable and have pr_cont() check that. Signed-off-by: Ben Hutchings Gbp-Pq: Topic bugfix/all Gbp-Pq: Name tools-lib-lockdep-define-pr_cont.patch --- diff --git a/tools/include/linux/lockdep.h b/tools/include/linux/lockdep.h index 940c1b07565..6d04df8e367 100644 --- a/tools/include/linux/lockdep.h +++ b/tools/include/linux/lockdep.h @@ -48,6 +48,8 @@ static inline int debug_locks_off(void) #define printk(...) dprintf(STDOUT_FILENO, __VA_ARGS__) #define pr_err(format, ...) fprintf (stderr, format, ## __VA_ARGS__) #define pr_warn pr_err +/* XXX we assume pr_cont() is only used for warnings */ +#define pr_cont pr_warn #define list_del_rcu list_del