[PATCH] Fix print formatting warning for some functions in drivers/staging/vme_user/vme.c
From: Nicklaus Choo
Date: Wed Aug 16 2023 - 21:57:39 EST
Fixed a coding style issue.
Signed-off-by: Nicklaus Choo <nicklauscyc@xxxxxxxxx>
---
drivers/staging/vme_user/vme.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/vme_user/vme.c b/drivers/staging/vme_user/vme.c
index b5555683a069..d583c4abbf50 100644
--- a/drivers/staging/vme_user/vme.c
+++ b/drivers/staging/vme_user/vme.c
@@ -1742,12 +1742,12 @@ int vme_slot_num(struct vme_dev *vdev)
bridge = vdev->bridge;
if (!bridge) {
- printk(KERN_ERR "Can't find VME bus\n");
+ pr_err("Can't find VME bus\n");
return -EINVAL;
}
if (!bridge->slot_get) {
- printk(KERN_WARNING "vme_slot_num not supported\n");
+ pr_warn("%s not supported\n", __func__);
return -EINVAL;
}
--
2.41.0