Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c35b8e5 authored by Frank Seidel's avatar Frank Seidel Committed by Jesse Barnes
Browse files

PCI: add missing KERN_* constants to printks



According to kerneljanitors todo list all printk calls (beginning
a new line) should have an according KERN_* constant.
Those are the missing pieces here for the pci subsystem.

Signed-off-by: default avatarFrank Seidel <frank@f-seidel.de>
Reviewed-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Tested-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 2b563134
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -48,7 +48,7 @@ extern struct workqueue_struct *pciehp_wq;
#define dbg(format, arg...)						\
#define dbg(format, arg...)						\
do {									\
do {									\
	if (pciehp_debug)						\
	if (pciehp_debug)						\
			printk("%s: " format, MY_NAME , ## arg);	\
		printk(KERN_DEBUG "%s: " format, MY_NAME , ## arg);	\
} while (0)
} while (0)
#define err(format, arg...)						\
#define err(format, arg...)						\
	printk(KERN_ERR "%s: " format, MY_NAME , ## arg)
	printk(KERN_ERR "%s: " format, MY_NAME , ## arg)
@@ -60,7 +60,7 @@ extern struct workqueue_struct *pciehp_wq;
#define ctrl_dbg(ctrl, format, arg...)					\
#define ctrl_dbg(ctrl, format, arg...)					\
	do {								\
	do {								\
		if (pciehp_debug)					\
		if (pciehp_debug)					\
			dev_printk(, &ctrl->pcie->device,		\
			dev_printk(KERN_DEBUG, &ctrl->pcie->device,	\
					format, ## arg);		\
					format, ## arg);		\
	} while (0)
	} while (0)
#define ctrl_err(ctrl, format, arg...)					\
#define ctrl_err(ctrl, format, arg...)					\
+5 −5
Original line number Original line Diff line number Diff line
@@ -50,7 +50,7 @@ extern struct workqueue_struct *shpchp_wq;
#define dbg(format, arg...)						\
#define dbg(format, arg...)						\
do {									\
do {									\
	if (shpchp_debug)						\
	if (shpchp_debug)						\
			printk("%s: " format, MY_NAME , ## arg);	\
		printk(KERN_DEBUG "%s: " format, MY_NAME , ## arg);	\
} while (0)
} while (0)
#define err(format, arg...)						\
#define err(format, arg...)						\
	printk(KERN_ERR "%s: " format, MY_NAME , ## arg)
	printk(KERN_ERR "%s: " format, MY_NAME , ## arg)
@@ -62,7 +62,7 @@ extern struct workqueue_struct *shpchp_wq;
#define ctrl_dbg(ctrl, format, arg...)					\
#define ctrl_dbg(ctrl, format, arg...)					\
	do {								\
	do {								\
		if (shpchp_debug)					\
		if (shpchp_debug)					\
			dev_printk(, &ctrl->pci_dev->dev,		\
			dev_printk(KERN_DEBUG, &ctrl->pci_dev->dev,	\
					format, ## arg);		\
					format, ## arg);		\
	} while (0)
	} while (0)
#define ctrl_err(ctrl, format, arg...)					\
#define ctrl_err(ctrl, format, arg...)					\
+1 −1
Original line number Original line Diff line number Diff line
@@ -1970,7 +1970,7 @@ static inline void iommu_prepare_isa(void)
	ret = iommu_prepare_identity_map(pdev, 0, 16*1024*1024);
	ret = iommu_prepare_identity_map(pdev, 0, 16*1024*1024);


	if (ret)
	if (ret)
		printk("IOMMU: Failed to create 0-64M identity map, "
		printk(KERN_ERR "IOMMU: Failed to create 0-64M identity map, "
			"floppy might not work\n");
			"floppy might not work\n");


}
}