]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/dynamic_debug.h
dynamic_debug: use printk(KERN_WARNING..) in stub function
authorJim Cromie <jim.cromie@gmail.com>
Tue, 1 May 2012 11:23:12 +0000 (05:23 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2012 12:58:06 +0000 (08:58 -0400)
commit516cf1be07cf3ab52e6d2f64da33b0fa5d9e0042
tree4de9f57190026d8a6b3704f0e01911222ab8da6e
parent3ec5652ab70f6e9a888d9e5f67c858af354323b3
dynamic_debug: use printk(KERN_WARNING..) in stub function

drivers/infiniband/ulp/srp/ib_srp.c #defines pr_fmt() PFX fmt, but PFX
is not #defined until after <linux/*> headers are included.

This results in a bad expansion of the pr_warn() in the stub function.

2084c2084
<   printk("<4>" PFX "dyndbg supported only in " "CONFIG_DYNAMIC_DEBUG builds\n")

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/dynamic_debug.h