Skip to contentSkip to conversation

printk : arch/arm/mach-integrator/impd1.c

PATCH New Christophe Lucas 1 participant 1 message May 15, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 printk : arch/arm/mach-integrator/impd1.c

Description:
printk should include appropriate KERN_* constant (of course only at beginning of lines).

arch/arm/mach-integrator/impd1.c +2 -2
Index: linux-2.6.16.16/arch/arm/mach-integrator/impd1.c
===================================================================
@@ -370,7 +370,7 @@
 
 	lm_set_drvdata(dev, impd1);
 
-	printk("IM-PD1 found at 0x%08lx\n", dev->resource.start);
+	printk(KERN_INFO "IM-PD1 found at 0x%08lx\n", dev->resource.start);
 
 	for (i = 0; i < ARRAY_SIZE(impd1->vcos); i++) {
 		impd1->vcos[i].owner = THIS_MODULE,
@@ -409,7 +409,7 @@
 
 		ret = amba_device_register(d, &dev->resource);
 		if (ret) {
-			printk("unable to register device %s: %d\n",
+			printk(KERN_ERR "unable to register device %s: %d\n",
 				d->dev.bus_id, ret);
 			kfree(d);
 		}

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors