Skip to contentSkip to conversation

fbdev/tridentfb: replace printk() with dev_*() in probe

PATCH Applied Javier Garcia 2 participants 3 messages Nov 15, 2025 – Dec 2, 2025 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev/tridentfb: replace printk() with dev_*() in probe

- Replace in trident_pc_probe() printk by dev_* fn's
- Delete the prefix tridentfb: from msg strings, not needed now.

---
 drivers/video/fbdev/tridentfb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/video/fbdev/tridentfb.c +2 -2
index 516cf2a18757..17b7253b8fbe 100644
@@ -1631,7 +1631,7 @@ static int trident_pci_probe(struct pci_dev *dev,
 	}
 
 	if (noaccel) {
-		printk(KERN_DEBUG "disabling acceleration\n");
+		dev_dbg(&dev->dev, "disabling acceleration\n");
 		info->flags |= FBINFO_HWACCEL_DISABLED;
 		info->pixmap.scan_align = 1;
 	}
@@ -1693,7 +1693,7 @@ static int trident_pci_probe(struct pci_dev *dev,
 	info->var.activate |= FB_ACTIVATE_NOW;
 	info->device = &dev->dev;
 	if (register_framebuffer(info) < 0) {
-		printk(KERN_ERR "tridentfb: could not register framebuffer\n");
+		dev_err(&dev->dev, "could not register framebuffer\n");
 		fb_dealloc_cmap(&info->cmap);
 		err = -EINVAL;
 		goto out_unmap2;
Signature · 1 line
2.50.1
#1 lore raw

Hi Deller,

Any comments on this patch?,

Thanks!

---
Javier Garcia

Quoted 34 lines · Javier Garcia

- Replace in trident_pc_probe() printk by dev_* fn's
- Delete the prefix tridentfb: from msg strings, not needed now.

---
 drivers/video/fbdev/tridentfb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/video/fbdev/tridentfb.c +2 -3
index 516cf2a18757..17b7253b8fbe 100644
@@ -1631,7 +1631,7 @@ static int trident_pci_probe(struct pci_dev *dev,
        }
 
        if (noaccel) {
-               printk(KERN_DEBUG "disabling acceleration\n");
+               dev_dbg(&dev->dev, "disabling acceleration\n");
                info->flags |= FBINFO_HWACCEL_DISABLED;
                info->pixmap.scan_align = 1;
        }
@@ -1693,7 +1693,7 @@ static int trident_pci_probe(struct pci_dev *dev,
        info->var.activate |= FB_ACTIVATE_NOW;
        info->device = &dev->dev;
        if (register_framebuffer(info) < 0) {
-               printk(KERN_ERR "tridentfb: could not register framebuffer\n");
+               dev_err(&dev->dev, "could not register framebuffer\n");
                fb_dealloc_cmap(&info->cmap);
                err = -EINVAL;
                goto out_unmap2;
--

2.50.1

maintainer Applied
#2 lore raw
In reply to Javier Garcia
Quoted 7 lines · Javier Garcia

- Replace in trident_pc_probe() printk by dev_* fn's
- Delete the prefix tridentfb: from msg strings, not needed now.

---
  drivers/video/fbdev/tridentfb.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

applied.

Thanks!
Helge