aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-08-20 16:13:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-08-20 16:13:47 -0400
commitc3e2f79d2d483450cfc2b3ac4474a380e6c2615c (patch)
tree9a350b151ae39ed5d3b7ca236fdb0c7adf8a3964
parentb0fbfb0cec85563b4d4487bf273815cbdbbea3a5 (diff)
parentebdc82899ec5ed35af1c79ed6a4eeda69dad9b90 (diff)
Merge tag 'driver-core-3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull one more driver core fix from Greg Kroah-Hartman: "Here is one fix for the dmesg line corruption problem that the previous set of patches caused. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>" * tag 'driver-core-3.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: dyndbg: fix for SOH in logging messages
-rw-r--r--drivers/base/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index cdd01c52c629..5e6e00bc1652 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1912,8 +1912,8 @@ int __dev_printk(const char *level, const struct device *dev,
1912 "DEVICE=+%s:%s", subsys, dev_name(dev)); 1912 "DEVICE=+%s:%s", subsys, dev_name(dev));
1913 } 1913 }
1914skip: 1914skip:
1915 if (level[3]) 1915 if (level[2])
1916 level_extra = &level[3]; /* skip past "<L>" */ 1916 level_extra = &level[2]; /* skip past KERN_SOH "L" */
1917 1917
1918 return printk_emit(0, level[1] - '0', 1918 return printk_emit(0, level[1] - '0',
1919 dictlen ? dict : NULL, dictlen, 1919 dictlen ? dict : NULL, dictlen,