Skip to contentSkip to conversation

Staging: android: logger.c: fixed some printk macros

PATCH In review Sherwin Soltani 2 participants 3 messages Jun 22, 2012 – Jun 23, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: android: logger.c: fixed some printk macros

Changed a few printk messages in logger.c to make checkpatch.pl happy.

---
 drivers/staging/android/logger.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/android/logger.c +4 -4
index b2e71c6..b490c5c 100644
@@ -621,13 +621,13 @@ static int __init create_log(char *log_name, int size)
 	/* finally, initialize the misc device for this log */
 	ret = misc_register(&log->misc);
 	if (unlikely(ret)) {
-		printk(KERN_ERR "logger: failed to register misc "
-		       "device for log '%s'!\n", log->misc.name);
+		pr_err("logger: failed to register misc device for log '%s'!\n",
+			log->misc.name);
 		goto out_free_log;
 	}
 
-	printk(KERN_INFO "logger: created %luK log '%s'\n",
-	       (unsigned long) log->size >> 10, log->misc.name);
+	pr_info("logger: created %luK log '%s'\n",
+		(unsigned long) log->size >> 10, log->misc.name);
 
 	return 0;
 
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 6 lines · Sherwin Soltani

Changed a few printk messages in logger.c to make checkpatch.pl happy.

---
 drivers/staging/android/logger.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

This patch does not apply, did you make it against Linus's tree or linux-next? You need to always work off of linux-next please.

thanks,

greg k-h

#2 lore raw
Quoted 6 lines · Greg KH

This patch does not apply, did you make it against Linus's tree or linux-next? You need to always work off of linux-next please.

thanks,

greg k-h

Sorry, my mistake. I'll rewrite the patch working off of linux-next and resubmit.

Sherwin