Skip to contentSkip to conversation

tridentfb: Clean up printk()'s

PATCH In review Antonino A. Daplas 1 participant 1 message Mar 14, 2005 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 tridentfb: Clean up printk()'s

This patch adds KERN_ constants to all of the printk()'s that need them in drivers/video/tridentfb.c

---

 drivers/video/tridentfb.c |    2 +-
 include/video/trident.h   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/tridentfb.c +1 -1
diff -Nru a/drivers/video/tridentfb.c b/drivers/video/tridentfb.c
@@ -1163,7 +1163,7 @@
 	fb_info.var = default_var;
 	fb_info.device = &dev->dev;
 	if (register_framebuffer(&fb_info) < 0) {
-		output("Could not register Trident framebuffer\n");
+		printk(KERN_ERR "tridentfb: could not register Trident framebuffer\n");
 		return -EINVAL;
 	}
 	output("fb%d: %s frame buffer device %dx%d-%dbpp\n",
include/video/trident.h +1 -1
diff -Nru a/include/video/trident.h b/include/video/trident.h
@@ -9,7 +9,7 @@
 #define debug(f,a...)
 #endif
 
-#define output(f, a...) printk("tridentfb: " f, ## a)
+#define output(f, a...) pr_info("tridentfb: " f, ## a)
 
 #define Kb	(1024)
 #define Mb	(Kb*Kb)

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click