]> git.baikalelectronics.ru Git - kernel.git/commit
x86: xen: platform-pci-unplug: use pr_err() and pr_warn() instead of raw printk()
authorzhaoxiao <zhaoxiao@uniontech.com>
Wed, 25 Aug 2021 11:41:11 +0000 (19:41 +0800)
committerJuergen Gross <jgross@suse.com>
Mon, 30 Aug 2021 10:09:54 +0000 (12:09 +0200)
commit1a0df28c09831dc4bd336fe6e090bbe85a07e79f
treeedd33d0cc0e826f1f5629c87fed489642dd37f25
parentbb70913dceca050e8f4f60ba5361fcf62460df06
x86: xen: platform-pci-unplug: use pr_err() and pr_warn() instead of raw printk()

Since we have the nice helpers pr_err() and pr_warn(), use them instead
of raw printk().

[jgross@suse.com] Move the "#define pr_fmt" above the #includes in
                  order to avoid build warnings due to redefinition.

Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20210825114111.29009-1-zhaoxiao@uniontech.com
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/platform-pci-unplug.c