Skip to contentSkip to conversation

printk-remove-duplicated-check-for-log-level.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 4, 2014 Printk

lore
Share & tools
lore
#0 lore raw

Subject: [merged] printk-remove-duplicated-check-for-log-level.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 04 Apr 2014 12:32:46 -0700

The patch titled
Subject: printk: remove duplicated check for log level
has been removed from the -mm tree. Its filename was
printk-remove-duplicated-check-for-log-level.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Petr Mladek <[email protected]>
Subject: printk: remove duplicated check for log level

The check for the exact log level is already done in printk_get_level. We do not need to duplicate it in printk_skip_level.

Cc Steven Rostedt <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jan Kara <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Kay Sievers <[email protected]>

---

 include/linux/printk.h |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
include/linux/printk.h renamed from include/linux/printk.h~printk-remove-duplicated-check-for-log-level +3 -7
diff -puN include/linux/printk.h~printk-remove-duplicated-check-for-log-level include/linux/printk.h
@@ -24,13 +24,9 @@ static inline int printk_get_level(const
 
 static inline const char *printk_skip_level(const char *buffer)
 {
-	if (printk_get_level(buffer)) {
-		switch (buffer[1]) {
-		case '0' ... '7':
-		case 'd':	/* KERN_DEFAULT */
-			return buffer + 2;
-		}
-	}
+	if (printk_get_level(buffer))
+		return buffer + 2;
+
 	return buffer;
 }
 

_

Patches currently in -mm which might be from [email protected] are

origin.patch
linux-next.patch