tools/lib/lockdep: Define pr_cont()
authorBen Hutchings <ben@decadent.org.uk>
Sun, 1 Oct 2017 14:39:34 +0000 (15:39 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 15 Oct 2017 06:57:36 +0000 (07:57 +0100)
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 <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name tools-lib-lockdep-define-pr_cont.patch

tools/include/linux/lockdep.h

index 8da3e8effafa7279e3db8f6f7d4adce922392d0a..ca0b59727390b673a75b1c1fcde6e693309a3182 100644 (file)
@@ -47,6 +47,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