linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR
@ 2012-12-12 18:18 Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 01/26] vsprintf: Add extension %pSR - print_symbol replacement Joe Perches
                   ` (29 more replies)
  0 siblings, 30 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina, linux-doc, linuxppc-dev, cbe-oss-dev, linux-edac,
	user-mode-linux-devel, user-mode-linux-user, cluster-devel,
	linux-mm
  Cc: linux-kernel, linux-kernel, linux-alpha, linux-arm-kernel,
	linux-c6x-dev, linux-ia64, linux-m32r, linux-m32r-ja,
	linux-am33-list, linux, linux-s390, linux-sh, linux-xtensa

Remove the somewhat awkward uses of print_symbol and convert all the
existing uses to a new vsprintf pointer type of %pSR.

print_symbol can be interleaved when it is used in a sequence like:

	printk("something: ...");
	print_symbol("%s", addr);
	printk("\n");

Instead use:

	printk("something: %pSR\n", (void *)addr);

Add a new %p[SsFf]R vsprintf extension that can perform the same
symbol function/address/offset formatting as print_symbol to
reduce the number and styles of message logging functions.

print_symbol used __builtin_extract_return_addr for those architectures
like S/390 and SPARC that have offset or masked addressing.
%p[FfSs]R uses the same gcc __builtin

Joe Perches (26):
  vsprintf: Add extension %pSR - print_symbol replacement
  alpha: Convert print_symbol to %pSR
  arm: Convert print_symbol to %pSR
  arm64: Convert print_symbol to %pSR
  avr32: Convert print_symbol to %pSR
  c6x: Convert print_symbol to %pSR
  ia64: Convert print_symbol to %pSR
  m32r: Convert print_symbol to %pSR
  mn10300: Convert print_symbol to %pSR
  openrisc: Convert print_symbol to %pSR
  powerpc: Convert print_symbol to %pSR
  s390: Convert print_symbol to %pSR
  sh: Convert print_symbol to %pSR
  um: Convert print_symbol to %pSR
  unicore32: Convert print_symbol to %pSR
  x86: Convert print_symbol to %pSR
  xtensa: Convert print_symbol to %pSR
  drivers: base: Convert print_symbol to %pSR
  gfs2: Convert print_symbol to %pSR
  sysfs: Convert print_symbol to %pSR
  irq: Convert print_symbol to %pSR
  smp_processor_id: Convert print_symbol to %pSR
  mm: Convert print_symbol to %pSR
  xtensa: Convert print_symbol to %pSR
  x86: head_64.S: Use vsprintf extension %pSR not print_symbol
  kallsyms: Remove print_symbol

 Documentation/filesystems/sysfs.txt         |    4 +-
 Documentation/printk-formats.txt            |    2 +
 Documentation/zh_CN/filesystems/sysfs.txt   |    4 +-
 arch/alpha/kernel/traps.c                   |    8 ++----
 arch/arm/kernel/process.c                   |    4 +-
 arch/arm64/kernel/process.c                 |    4 +-
 arch/avr32/kernel/process.c                 |   25 ++++++-----------------
 arch/c6x/kernel/traps.c                     |    3 +-
 arch/ia64/kernel/process.c                  |   13 ++++-------
 arch/m32r/kernel/traps.c                    |    6 +---
 arch/mn10300/kernel/traps.c                 |    8 +++---
 arch/openrisc/kernel/traps.c                |    7 +----
 arch/powerpc/platforms/cell/spu_callbacks.c |   12 ++++------
 arch/s390/kernel/traps.c                    |   28 +++++++++++++++-----------
 arch/sh/kernel/process_32.c                 |    4 +-
 arch/um/kernel/sysrq.c                      |    6 +---
 arch/unicore32/kernel/process.c             |    5 ++-
 arch/x86/kernel/cpu/mcheck/mce.c            |   13 ++++++-----
 arch/x86/kernel/dumpstack.c                 |    5 +--
 arch/x86/kernel/head_64.S                   |    4 +-
 arch/x86/kernel/process_32.c                |    2 +-
 arch/x86/mm/mmio-mod.c                      |    4 +-
 arch/x86/um/sysrq_32.c                      |    9 ++-----
 arch/xtensa/kernel/traps.c                  |    6 +---
 drivers/base/core.c                         |    4 +-
 fs/gfs2/glock.c                             |    4 +-
 fs/gfs2/trans.c                             |    3 +-
 fs/sysfs/file.c                             |    4 +-
 include/linux/kallsyms.h                    |   18 -----------------
 kernel/irq/debug.h                          |   15 ++++++-------
 kernel/kallsyms.c                           |   11 ----------
 lib/smp_processor_id.c                      |    2 +-
 lib/vsprintf.c                              |   18 ++++++++++++----
 mm/memory.c                                 |    8 +++---
 mm/slab.c                                   |    8 ++----
 35 files changed, 117 insertions(+), 164 deletions(-)

-- 
1.7.8.112.g3fd21


^ permalink raw reply	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 01/26] vsprintf: Add extension %pSR - print_symbol replacement
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 02/26] alpha: Convert print_symbol to %pSR Joe Perches
                   ` (28 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina, Rob Landley; +Cc: linux-doc, linux-kernel

print_symbol takes a long and converts it to a function
name and offset.  %pS does something similar, but doesn't
translate the address via __builtin_extract_return_addr.
%pSR does the translation.

This will enable replacing multiple calls like
	printk(...);
	printk_symbol(addr);
	printk("\n");
with a single non-interleavable in dmesg
	printk("... %pSR\n", (void *)addr);

Update documentation too.

Signed-off-by: Joe Perches <joe@perches.com>
---
 Documentation/printk-formats.txt |    2 ++
 lib/vsprintf.c                   |   18 +++++++++++++-----
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt
index 8ffb274..69a5ca1 100644
--- a/Documentation/printk-formats.txt
+++ b/Documentation/printk-formats.txt
@@ -17,6 +17,8 @@ Symbols/Function Pointers:
 	%pF	versatile_init+0x0/0x110
 	%pf	versatile_init
 	%pS	versatile_init+0x0/0x110
+	%pSR	versatile_init+0x9/0x110
+		(with __builtin_extract_return_addr() translation)
 	%ps	versatile_init
 	%pB	prev_fn_of_versatile_init+0x88/0x88
 
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index fab33a9..832ff0b 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -534,14 +534,21 @@ char *string(char *buf, char *end, const char *s, struct printf_spec spec)
 
 static noinline_for_stack
 char *symbol_string(char *buf, char *end, void *ptr,
-		    struct printf_spec spec, char ext)
+		    struct printf_spec spec, const char *fmt)
 {
-	unsigned long value = (unsigned long) ptr;
+	unsigned long value;
 #ifdef CONFIG_KALLSYMS
 	char sym[KSYM_SYMBOL_LEN];
-	if (ext == 'B')
+#endif
+
+	if (fmt[1] == 'R')
+		ptr = __builtin_extract_return_addr(ptr);
+	value = (unsigned long)ptr;
+
+#ifdef CONFIG_KALLSYMS
+	if (*fmt == 'B')
 		sprint_backtrace(sym, value);
-	else if (ext != 'f' && ext != 's')
+	else if (*fmt != 'f' && *fmt != 's')
 		sprint_symbol(sym, value);
 	else
 		sprint_symbol_no_offset(sym, value);
@@ -987,6 +994,7 @@ int kptr_restrict __read_mostly;
  * - 'f' For simple symbolic function names without offset
  * - 'S' For symbolic direct pointers with offset
  * - 's' For symbolic direct pointers without offset
+ * - '[FfSs]R' as above with __builtin_extract_return_addr() translation
  * - 'B' For backtraced symbolic direct pointers with offset
  * - 'R' For decoded struct resource, e.g., [mem 0x0-0x1f 64bit pref]
  * - 'r' For raw struct resource, e.g., [mem 0x0-0x1f flags 0x201]
@@ -1059,7 +1067,7 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
 	case 'S':
 	case 's':
 	case 'B':
-		return symbol_string(buf, end, ptr, spec, *fmt);
+		return symbol_string(buf, end, ptr, spec, fmt);
 	case 'R':
 	case 'r':
 		return resource_string(buf, end, ptr, spec, fmt);
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 02/26] alpha: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 01/26] vsprintf: Add extension %pSR - print_symbol replacement Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 03/26] arm: " Joe Perches
                   ` (27 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Richard Henderson, Ivan Kokshaysky, Matt Turner, linux-alpha,
	linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/alpha/kernel/traps.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/arch/alpha/kernel/traps.c b/arch/alpha/kernel/traps.c
index 272666d..9ac7318 100644
--- a/arch/alpha/kernel/traps.c
+++ b/arch/alpha/kernel/traps.c
@@ -66,8 +66,8 @@ dik_show_regs(struct pt_regs *regs, unsigned long *r9_15)
 {
 	printk("pc = [<%016lx>]  ra = [<%016lx>]  ps = %04lx    %s\n",
 	       regs->pc, regs->r26, regs->ps, print_tainted());
-	print_symbol("pc is at %s\n", regs->pc);
-	print_symbol("ra is at %s\n", regs->r26 );
+	printk("pc is at %pSR\n", (void *)regs->pc);
+	printk("ra is at %pSR\n", (void *)regs->r26);
 	printk("v0 = %016lx  t0 = %016lx  t1 = %016lx\n",
 	       regs->r0, regs->r1, regs->r2);
 	printk("t2 = %016lx  t3 = %016lx  t4 = %016lx\n",
@@ -132,9 +132,7 @@ dik_show_trace(unsigned long *sp)
 			continue;
 		if (tmp >= (unsigned long) &_etext)
 			continue;
-		printk("[<%lx>]", tmp);
-		print_symbol(" %s", tmp);
-		printk("\n");
+		printk("[<%lx>] %pSR\n", tmp, (void *)tmp);
 		if (i > 40) {
 			printk(" ...");
 			break;
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 03/26] arm: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 01/26] vsprintf: Add extension %pSR - print_symbol replacement Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 02/26] alpha: Convert print_symbol to %pSR Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 04/26] arm64: " Joe Perches
                   ` (26 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Russell King, linux-arm-kernel, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/arm/kernel/process.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
index f79dd1e..de3966a 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -283,8 +283,8 @@ void __show_regs(struct pt_regs *regs)
 		init_utsname()->release,
 		(int)strcspn(init_utsname()->version, " "),
 		init_utsname()->version);
-	print_symbol("PC is at %s\n", instruction_pointer(regs));
-	print_symbol("LR is at %s\n", regs->ARM_lr);
+	printk("PC is at %pSR\n", (void *)instruction_pointer(regs));
+	printk("LR is at %pSR\n", (void *)regs->ARM_lr);
 	printk("pc : [<%08lx>]    lr : [<%08lx>]    psr: %08lx\n"
 	       "sp : %08lx  ip : %08lx  fp : %08lx\n",
 		regs->ARM_pc, regs->ARM_lr, regs->ARM_cpsr,
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 04/26] arm64: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (2 preceding siblings ...)
  2012-12-12 18:18 ` [TRIVIAL PATCH 03/26] arm: " Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-13 18:03   ` Catalin Marinas
  2012-12-12 18:18 ` [TRIVIAL PATCH 05/26] avr32: " Joe Perches
                   ` (25 subsequent siblings)
  29 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Catalin Marinas, linux-arm-kernel, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/arm64/kernel/process.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index cb0956b..55fb84e 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -187,8 +187,8 @@ void __show_regs(struct pt_regs *regs)
 		init_utsname()->release,
 		(int)strcspn(init_utsname()->version, " "),
 		init_utsname()->version);
-	print_symbol("PC is at %s\n", instruction_pointer(regs));
-	print_symbol("LR is at %s\n", regs->regs[30]);
+	printk("PC is at %pSR\n", (void *)instruction_pointer(regs));
+	printk("LR is at %pSR\n", (void *)regs->regs[30]);
 	printk("pc : [<%016llx>] lr : [<%016llx>] pstate: %08llx\n",
 	       regs->pc, regs->regs[30], regs->pstate);
 	printk("sp : %016llx\n", regs->sp);
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 05/26] avr32: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (3 preceding siblings ...)
  2012-12-12 18:18 ` [TRIVIAL PATCH 04/26] arm64: " Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 06/26] c6x: " Joe Perches
                   ` (24 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Haavard Skinnemoen, Hans-Christian Egtvedt, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Remove a couple of #ifdef CONFIG_KALLSYMS branches
that are now the same code.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/avr32/kernel/process.c |   25 +++++++------------------
 1 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c
index fd78f58..7a56e86 100644
--- a/arch/avr32/kernel/process.c
+++ b/arch/avr32/kernel/process.c
@@ -148,12 +148,7 @@ static void show_trace_log_lvl(struct task_struct *tsk, unsigned long *sp,
 		unsigned long new_fp;
 
 		lr = *(unsigned long *)fp;
-#ifdef CONFIG_KALLSYMS
-		printk("%s [<%08lx>] ", log_lvl, lr);
-#else
-		printk(" [<%08lx>] ", lr);
-#endif
-		print_symbol("%s\n", lr);
+		printk("%s [<%08lx>] %pSR\n", log_lvl, lr, (void *)lr);
 
 		new_fp = *(unsigned long *)(fp + 4);
 		if (new_fp <= fp)
@@ -172,14 +167,9 @@ static void show_trace_log_lvl(struct task_struct *tsk, unsigned long *sp,
 
 	while (!kstack_end(sp)) {
 		addr = *sp++;
-		if (kernel_text_address(addr)) {
-#ifdef CONFIG_KALLSYMS
-			printk("%s [<%08lx>] ", log_lvl, addr);
-#else
-			printk(" [<%08lx>] ", addr);
-#endif
-			print_symbol("%s\n", addr);
-		}
+		if (kernel_text_address(addr))
+			printk("%s [<%08lx>] %pSR\n",
+			       log_lvl, addr, (void *)addr);
 	}
 	printk("\n");
 }
@@ -235,10 +225,9 @@ void show_regs_log_lvl(struct pt_regs *regs, const char *log_lvl)
 	if (!user_mode(regs)) {
 		sp = (unsigned long)regs + FRAME_SIZE_FULL;
 
-		printk("%s", log_lvl);
-		print_symbol("PC is at %s\n", instruction_pointer(regs));
-		printk("%s", log_lvl);
-		print_symbol("LR is at %s\n", lr);
+		printk("%sPC is at %pSR\n",
+		       log_lvl, (void *)instruction_pointer(regs));
+		printk("%sLR is at %pSR\n", log_lvl, (void *)lr);
 	}
 
 	printk("%spc : [<%08lx>]    lr : [<%08lx>]    %s\n"
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 06/26] c6x: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (4 preceding siblings ...)
  2012-12-12 18:18 ` [TRIVIAL PATCH 05/26] avr32: " Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 07/26] ia64: " Joe Perches
                   ` (23 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Mark Salter, Aurelien Jacquiot, linux-c6x-dev, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/c6x/kernel/traps.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/c6x/kernel/traps.c b/arch/c6x/kernel/traps.c
index 1be74e5..349cae0 100644
--- a/arch/c6x/kernel/traps.c
+++ b/arch/c6x/kernel/traps.c
@@ -382,8 +382,7 @@ static void show_trace(unsigned long *stack, unsigned long *endstack)
 			if (i % 5 == 0)
 				pr_debug("\n	    ");
 #endif
-			pr_debug(" [<%08lx>]", addr);
-			print_symbol(" %s\n", addr);
+			pr_debug(" [<%08lx>] %pSR\n", addr, (void *)addr);
 			i++;
 		}
 	}
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 07/26] ia64: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (5 preceding siblings ...)
  2012-12-12 18:18 ` [TRIVIAL PATCH 06/26] c6x: " Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 08/26] m32r: " Joe Perches
                   ` (22 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Tony Luck, Fenghua Yu, linux-ia64, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/ia64/kernel/process.c |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c
index 31360cb..f11105a 100644
--- a/arch/ia64/kernel/process.c
+++ b/arch/ia64/kernel/process.c
@@ -1,4 +1,4 @@
-/*
+ /*
  * Architecture-specific setup.
  *
  * Copyright (C) 1998-2003 Hewlett-Packard Co
@@ -66,7 +66,6 @@ void
 ia64_do_show_stack (struct unw_frame_info *info, void *arg)
 {
 	unsigned long ip, sp, bsp;
-	char buf[128];			/* don't make it so big that it overflows the stack! */
 
 	printk("\nCall Trace:\n");
 	do {
@@ -76,11 +75,9 @@ ia64_do_show_stack (struct unw_frame_info *info, void *arg)
 
 		unw_get_sp(info, &sp);
 		unw_get_bsp(info, &bsp);
-		snprintf(buf, sizeof(buf),
-			 " [<%016lx>] %%s\n"
-			 "                                sp=%016lx bsp=%016lx\n",
-			 ip, sp, bsp);
-		print_symbol(buf, ip);
+		printk(" [<%016lx>] %pSR\n"
+		       "                                sp=%016lx bsp=%016lx\n",
+		       ip, (void *)ip, sp, bsp);
 	} while (unw_unwind(info) >= 0);
 }
 
@@ -116,7 +113,7 @@ show_regs (struct pt_regs *regs)
 	printk("psr : %016lx ifs : %016lx ip  : [<%016lx>]    %s (%s)\n",
 	       regs->cr_ipsr, regs->cr_ifs, ip, print_tainted(),
 	       init_utsname()->release);
-	print_symbol("ip is at %s\n", ip);
+	printk("ip is at %pSR\n", (void *)ip);
 	printk("unat: %016lx pfs : %016lx rsc : %016lx\n",
 	       regs->ar_unat, regs->ar_pfs, regs->ar_rsc);
 	printk("rnat: %016lx bsps: %016lx pr  : %016lx\n",
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 08/26] m32r: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (6 preceding siblings ...)
  2012-12-12 18:18 ` [TRIVIAL PATCH 07/26] ia64: " Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-13  3:06   ` Hirokazu Takata
  2012-12-12 18:18 ` [TRIVIAL PATCH 09/26] mn10300: " Joe Perches
                   ` (21 subsequent siblings)
  29 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Hirokazu Takata, linux-m32r, linux-m32r-ja, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/m32r/kernel/traps.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/m32r/kernel/traps.c b/arch/m32r/kernel/traps.c
index 3bcb207..9fe3467 100644
--- a/arch/m32r/kernel/traps.c
+++ b/arch/m32r/kernel/traps.c
@@ -132,10 +132,8 @@ static void show_trace(struct task_struct *task, unsigned long *stack)
 	printk("Call Trace: ");
 	while (!kstack_end(stack)) {
 		addr = *stack++;
-		if (__kernel_text_address(addr)) {
-			printk("[<%08lx>] ", addr);
-			print_symbol("%s\n", addr);
-		}
+		if (__kernel_text_address(addr))
+			printk("[<%08lx>] %pSR\n", addr, (void *)addr);
 	}
 	printk("\n");
 }
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 09/26] mn10300: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (7 preceding siblings ...)
  2012-12-12 18:18 ` [TRIVIAL PATCH 08/26] m32r: " Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-12 18:18 ` [TRIVIAL PATCH 10/26] openrisc: " Joe Perches
                   ` (20 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: David Howells, Koichi Yasutake, linux-am33-list, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Consolidate multiple printks into a one.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/mn10300/kernel/traps.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/mn10300/kernel/traps.c b/arch/mn10300/kernel/traps.c
index b900e5a..d263b70 100644
--- a/arch/mn10300/kernel/traps.c
+++ b/arch/mn10300/kernel/traps.c
@@ -256,13 +256,13 @@ void show_trace(unsigned long *sp)
 		}
 
 		if (__kernel_text_address(addr)) {
-			printk(" [<%08lx>]", addr);
+			const char *known = "";
 			if (stack >= raslot)
 				raslot = ULONG_MAX;
 			else
-				printk(" ?");
-			print_symbol(" %s", addr);
-			printk("\n");
+				known = " ?";
+			printk(" [<%08lx>]%s %pSR\n",
+			       addr, known, (void *)addr);
 		}
 	}
 
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 10/26] openrisc: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (8 preceding siblings ...)
  2012-12-12 18:18 ` [TRIVIAL PATCH 09/26] mn10300: " Joe Perches
@ 2012-12-12 18:18 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 11/26] powerpc: " Joe Perches
                   ` (19 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:18 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Jonas Bonn, linux, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/openrisc/kernel/traps.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/openrisc/kernel/traps.c b/arch/openrisc/kernel/traps.c
index 5cce396..f5c1d0a 100644
--- a/arch/openrisc/kernel/traps.c
+++ b/arch/openrisc/kernel/traps.c
@@ -56,11 +56,8 @@ void show_trace(struct task_struct *task, unsigned long *stack)
 
 	while (valid_stack_ptr(context, stack)) {
 		addr = *stack++;
-		if (__kernel_text_address(addr)) {
-			printk(" [<%08lx>]", addr);
-			print_symbol(" %s", addr);
-			printk("\n");
-		}
+		if (__kernel_text_address(addr))
+			printk(" [<%08lx>] %pSR\n", addr, (void *)addr);
 	}
 	printk(" =======================\n");
 }
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 11/26] powerpc: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (9 preceding siblings ...)
  2012-12-12 18:18 ` [TRIVIAL PATCH 10/26] openrisc: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-13 11:58   ` Arnd Bergmann
  2012-12-12 18:19 ` [TRIVIAL PATCH 12/26] s390: " Joe Perches
                   ` (18 subsequent siblings)
  29 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina, Arnd Bergmann
  Cc: Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev,
	cbe-oss-dev, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Convert the #ifdef DEBUG block to a single pr_debug.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/powerpc/platforms/cell/spu_callbacks.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/arch/powerpc/platforms/cell/spu_callbacks.c b/arch/powerpc/platforms/cell/spu_callbacks.c
index 75d6133..c5fe6d2 100644
--- a/arch/powerpc/platforms/cell/spu_callbacks.c
+++ b/arch/powerpc/platforms/cell/spu_callbacks.c
@@ -60,13 +60,11 @@ long spu_sys_callback(struct spu_syscall_block *s)
 
 	syscall = spu_syscall_table[s->nr_ret];
 
-#ifdef DEBUG
-	print_symbol(KERN_DEBUG "SPU-syscall %s:", (unsigned long)syscall);
-	printk("syscall%ld(%lx, %lx, %lx, %lx, %lx, %lx)\n",
-			s->nr_ret,
-			s->parm[0], s->parm[1], s->parm[2],
-			s->parm[3], s->parm[4], s->parm[5]);
-#endif
+	pr_debug("SPU-syscall %pSR:syscall%ld(%lx, %lx, %lx, %lx, %lx, %lx)\n",
+		 syscall,
+		 s->nr_ret,
+		 s->parm[0], s->parm[1], s->parm[2],
+		 s->parm[3], s->parm[4], s->parm[5]);
 
 	return syscall(s->parm[0], s->parm[1], s->parm[2],
 		       s->parm[3], s->parm[4], s->parm[5]);
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 12/26] s390: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (10 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 11/26] powerpc: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-13  1:22   ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 13/26] sh: " Joe Perches
                   ` (17 subsequent siblings)
  29 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Martin Schwidefsky, Heiko Carstens, linux390, linux-s390, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/s390/kernel/traps.c |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index 70ecfc5..f718e12 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -91,8 +91,9 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
 		if (sp < low || sp > high - sizeof(*sf))
 			return sp;
 		sf = (struct stack_frame *) sp;
-		printk("([<%016lx>] ", sf->gprs[8] & PSW_ADDR_INSN);
-		print_symbol("%s)\n", sf->gprs[8] & PSW_ADDR_INSN);
+		printk("([<%016lx>] %pSR\n",
+		       sf->gprs[8] & PSW_ADDR_INSN,
+		       (void *)(sf->gprs[8] & PSW_ADDR_INSN));
 		/* Follow the backchain. */
 		while (1) {
 			low = sp;
@@ -102,16 +103,18 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
 			if (sp <= low || sp > high - sizeof(*sf))
 				return sp;
 			sf = (struct stack_frame *) sp;
-			printk(" [<%016lx>] ", sf->gprs[8] & PSW_ADDR_INSN);
-			print_symbol("%s\n", sf->gprs[8] & PSW_ADDR_INSN);
+			printk(" [<%016lx>] %pSR\n",
+			       sf->gprs[8] & PSW_ADDR_INSN,
+			       (void *)(sf->gprs[8] & PSW_ADDR_INSN));
 		}
 		/* Zero backchain detected, check for interrupt frame. */
 		sp = (unsigned long) (sf + 1);
 		if (sp <= low || sp > high - sizeof(*regs))
 			return sp;
 		regs = (struct pt_regs *) sp;
-		printk(" [<%016lx>] ", regs->psw.addr & PSW_ADDR_INSN);
-		print_symbol("%s\n", regs->psw.addr & PSW_ADDR_INSN);
+		printk(" [<%016lx>] %pSR\n",
+		       regs->psw.addr & PSW_ADDR_INSN,
+		       (void *)(regs->psw.addr & PSW_ADDR_INSN));
 		low = sp;
 		sp = regs->gprs[15];
 	}
@@ -169,8 +172,9 @@ static void show_last_breaking_event(struct pt_regs *regs)
 {
 #ifdef CONFIG_64BIT
 	printk("Last Breaking-Event-Address:\n");
-	printk(" [<%016lx>] ", regs->args[0] & PSW_ADDR_INSN);
-	print_symbol("%s\n", regs->args[0] & PSW_ADDR_INSN);
+	printk(" [<%016lx>] %pSR\n",
+	       regs->args[0] & PSW_ADDR_INSN,
+	       (void *)(regs->args[0] & PSW_ADDR_INSN));
 #endif
 }
 
@@ -201,10 +205,10 @@ void show_registers(struct pt_regs *regs)
 	char *mode;
 
 	mode = user_mode(regs) ? "User" : "Krnl";
-	printk("%s PSW : %p %p",
-	       mode, (void *) regs->psw.mask,
-	       (void *) regs->psw.addr);
-	print_symbol(" (%s)\n", regs->psw.addr & PSW_ADDR_INSN);
+	printk("%s PSW : %p %p, %pSR\n",
+	       mode, (void *)regs->psw.mask,
+	       (void *)regs->psw.addr,
+	       (void *)(regs->psw.addr & PSW_ADDR_INSN));
 	printk("           R:%x T:%x IO:%x EX:%x Key:%x M:%x W:%x "
 	       "P:%x AS:%x CC:%x PM:%x", mask_bits(regs, PSW_MASK_PER),
 	       mask_bits(regs, PSW_MASK_DAT), mask_bits(regs, PSW_MASK_IO),
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 13/26] sh: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (11 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 12/26] s390: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 14/26] um: " Joe Perches
                   ` (16 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Paul Mundt, linux-sh, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/sh/kernel/process_32.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c
index 73eb66f..a0837ba 100644
--- a/arch/sh/kernel/process_32.c
+++ b/arch/sh/kernel/process_32.c
@@ -38,8 +38,8 @@ void show_regs(struct pt_regs * regs)
 	       (int)strcspn(init_utsname()->version, " "),
 	       init_utsname()->version);
 
-	print_symbol("PC is at %s\n", instruction_pointer(regs));
-	print_symbol("PR is at %s\n", regs->pr);
+	printk("PC is at %pSR\n", (void *)instruction_pointer(regs));
+	printk("PR is at %pSR\n", (void *)regs->pr);
 
 	printk("PC  : %08lx SP  : %08lx SR  : %08lx ",
 	       regs->pc, regs->regs[15], regs->sr);
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 14/26] um: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (12 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 13/26] sh: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 15/26] unicore32: " Joe Perches
                   ` (15 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Jeff Dike, Richard Weinberger, user-mode-linux-devel,
	user-mode-linux-user, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/um/kernel/sysrq.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c
index e562ff8..6fa632c 100644
--- a/arch/um/kernel/sysrq.c
+++ b/arch/um/kernel/sysrq.c
@@ -24,10 +24,8 @@ void show_trace(struct task_struct *task, unsigned long * stack)
 	while (((long) stack & (THREAD_SIZE-1)) != 0) {
 		addr = *stack;
 		if (__kernel_text_address(addr)) {
-			printk(KERN_INFO "%08lx:  [<%08lx>]",
-			       (unsigned long) stack, addr);
-			print_symbol(KERN_CONT " %s", addr);
-			printk(KERN_CONT "\n");
+			printk(KERN_INFO "%08lx:  [<%08lx>] %pSR\n",
+			       (unsigned long)stack, addr, (void *)addr);
 		}
 		stack++;
 	}
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 15/26] unicore32: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (13 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 14/26] um: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
       [not found]   ` <001d01cdd8cd$371dfd60$a559f820$@mprc.pku.edu.cn>
       [not found]   ` <19e6ea369e4455fc447c48f72bd433921bd0a703.1355335228.git.joe@perches.c om>
  2012-12-12 18:19 ` [TRIVIAL PATCH 16/26] x86: " Joe Perches
                   ` (14 subsequent siblings)
  29 siblings, 2 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Guan Xuetao, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/unicore32/kernel/process.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c
index 62bad9f..d17a893 100644
--- a/arch/unicore32/kernel/process.c
+++ b/arch/unicore32/kernel/process.c
@@ -169,8 +169,9 @@ void __show_regs(struct pt_regs *regs)
 		init_utsname()->release,
 		(int)strcspn(init_utsname()->version, " "),
 		init_utsname()->version);
-	print_symbol("PC is at %s\n", instruction_pointer(regs));
-	print_symbol("LR is at %s\n", regs->UCreg_lr);
+	printk(KERN_DEFAULT "PC is at %pSR\n",
+	       (void *)instruction_pointer(regs));
+	printk(KERN_DEFAULT "LR is at %pSR\n", (void *)regs->UCreg_lr);
 	printk(KERN_DEFAULT "pc : [<%08lx>]    lr : [<%08lx>]    psr: %08lx\n"
 	       "sp : %08lx  ip : %08lx  fp : %08lx\n",
 		regs->UCreg_pc, regs->UCreg_lr, regs->UCreg_asr,
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (14 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 15/26] unicore32: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 21:09   ` Borislav Petkov
  2012-12-12 18:19 ` [TRIVIAL PATCH 17/26] xtensa: " Joe Perches
                   ` (13 subsequent siblings)
  29 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina, Tony Luck, Borislav Petkov, Jeff Dike, Richard Weinberger
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/x86/kernel/cpu/mcheck/mce.c |   13 +++++++------
 arch/x86/kernel/dumpstack.c      |    5 ++---
 arch/x86/kernel/process_32.c     |    2 +-
 arch/x86/mm/mmio-mod.c           |    4 ++--
 arch/x86/um/sysrq_32.c           |    9 +++------
 5 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 80dbda8..996f98a 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -242,13 +242,14 @@ static void print_mce(struct mce *m)
 	       m->extcpu, m->mcgstatus, m->bank, m->status);
 
 	if (m->ip) {
-		pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> ",
-			!(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
-				m->cs, m->ip);
-
 		if (m->cs == __KERNEL_CS)
-			print_symbol("{%s}", m->ip);
-		pr_cont("\n");
+			pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> {%pSR}\n",
+				 !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
+				 m->cs, m->ip, (void *)m->ip);
+		else
+			pr_emerg(HW_ERR "RIP%s %02x:<%016Lx>\n",
+				 !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
+				 m->cs, m->ip);
 	}
 
 	pr_emerg(HW_ERR "TSC %llx ", m->tsc);
diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c
index ae42418b..b6e5bdb 100644
--- a/arch/x86/kernel/dumpstack.c
+++ b/arch/x86/kernel/dumpstack.c
@@ -281,9 +281,8 @@ int __kprobes __die(const char *str, struct pt_regs *regs, long err)
 		sp = kernel_stack_pointer(regs);
 		savesegment(ss, ss);
 	}
-	printk(KERN_EMERG "EIP: [<%08lx>] ", regs->ip);
-	print_symbol("%s", regs->ip);
-	printk(" SS:ESP %04x:%08lx\n", ss, sp);
+	printk(KERN_EMERG "EIP: [<%08lx>] %pSR SS:ESP %04x:%08lx\n",
+	       regs->ip, (void *)regs->ip, ss, sp);
 #else
 	/* Executive summary in case the oops scrolled away */
 	printk(KERN_ALERT "RIP ");
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index b5a8905..0db77e0 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -89,7 +89,7 @@ void __show_regs(struct pt_regs *regs, int all)
 	printk(KERN_DEFAULT "EIP: %04x:[<%08lx>] EFLAGS: %08lx CPU: %d\n",
 			(u16)regs->cs, regs->ip, regs->flags,
 			smp_processor_id());
-	print_symbol("EIP is at %s\n", regs->ip);
+	printk(KERN_DEFAULT "EIP is at %pSR\n", (void *)regs->ip);
 
 	printk(KERN_DEFAULT "EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
 		regs->ax, regs->bx, regs->cx, regs->dx);
diff --git a/arch/x86/mm/mmio-mod.c b/arch/x86/mm/mmio-mod.c
index dc0b727..c0ca484 100644
--- a/arch/x86/mm/mmio-mod.c
+++ b/arch/x86/mm/mmio-mod.c
@@ -123,8 +123,8 @@ static void die_kmmio_nesting_error(struct pt_regs *regs, unsigned long addr)
 	pr_emerg("unexpected fault for address: 0x%08lx, last fault for address: 0x%08lx\n",
 		 addr, my_reason->addr);
 	print_pte(addr);
-	print_symbol(KERN_EMERG "faulting IP is at %s\n", regs->ip);
-	print_symbol(KERN_EMERG "last faulting IP was at %s\n", my_reason->ip);
+	pr_emerg("faulting IP is at %pSR\n", (void *)regs->ip);
+	pr_emerg("last faulting IP was at %pSR\n", (void *)my_reason->ip);
 #ifdef __i386__
 	pr_emerg("eax: %08lx   ebx: %08lx   ecx: %08lx   edx: %08lx\n",
 		 regs->ax, regs->bx, regs->cx, regs->dx);
diff --git a/arch/x86/um/sysrq_32.c b/arch/x86/um/sysrq_32.c
index c9bee5b..30b4200 100644
--- a/arch/x86/um/sysrq_32.c
+++ b/arch/x86/um/sysrq_32.c
@@ -50,18 +50,15 @@ static inline unsigned long print_context_stack(struct thread_info *tinfo,
 #ifdef CONFIG_FRAME_POINTER
 	while (valid_stack_ptr(tinfo, (void *)ebp)) {
 		addr = *(unsigned long *)(ebp + 4);
-		printk("%08lx:  [<%08lx>]", ebp + 4, addr);
-		print_symbol(" %s", addr);
-		printk("\n");
+		printk("%08lx:  [<%08lx>] %pSR\n", ebp + 4, addr, (void *)addr);
 		ebp = *(unsigned long *)ebp;
 	}
 #else
 	while (valid_stack_ptr(tinfo, stack)) {
 		addr = *stack;
 		if (__kernel_text_address(addr)) {
-			printk("%08lx:  [<%08lx>]", (unsigned long) stack, addr);
-			print_symbol(" %s", addr);
-			printk("\n");
+			printk("%08lx:  [<%08lx>] %pSR\n",
+			       (unsigned long)stack, addr, (void *)addr);
 		}
 		stack++;
 	}
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 17/26] xtensa: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (15 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 16/26] x86: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 18/26] drivers: base: " Joe Perches
                   ` (12 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Chris Zankel, Max Filippov, linux-xtensa, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/xtensa/kernel/traps.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c
index 691a792..bf57478 100644
--- a/arch/xtensa/kernel/traps.c
+++ b/arch/xtensa/kernel/traps.c
@@ -441,10 +441,8 @@ void show_trace(struct task_struct *task, unsigned long *sp)
 
 		pc = MAKE_PC_FROM_RA(a0, a1);
 
-		if (kernel_text_address(pc)) {
-			printk(" [<%08lx>] ", pc);
-			print_symbol("%s\n", pc);
-		}
+		if (kernel_text_address(pc))
+			printk(" [<%08lx>] %pSR\n", pc, (void *)pc);
 	}
 	printk("\n");
 }
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 18/26] drivers: base: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (16 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 17/26] xtensa: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 19/26] gfs2: " Joe Perches
                   ` (11 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina, Greg Kroah-Hartman; +Cc: linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/base/core.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index a235085..95159e1 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -97,8 +97,8 @@ static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
 	if (dev_attr->show)
 		ret = dev_attr->show(dev, dev_attr, buf);
 	if (ret >= (ssize_t)PAGE_SIZE) {
-		print_symbol("dev_attr_show: %s returned bad count\n",
-				(unsigned long)dev_attr->show);
+		printk("dev_attr_show: %pSR returned bad count\n",
+		       dev_attr->show);
 	}
 	return ret;
 }
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 19/26] gfs2: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (17 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 18/26] drivers: base: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-13 10:57   ` Steven Whitehouse
  2012-12-12 18:19 ` [TRIVIAL PATCH 20/26] sysfs: " Joe Perches
                   ` (10 subsequent siblings)
  29 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina, Steven Whitehouse; +Cc: cluster-devel, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 fs/gfs2/glock.c |    4 ++--
 fs/gfs2/trans.c |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
index 992c5c0..453978b 100644
--- a/fs/gfs2/glock.c
+++ b/fs/gfs2/glock.c
@@ -1016,11 +1016,11 @@ do_cancel:
 	return;
 
 trap_recursive:
-	print_symbol(KERN_ERR "original: %s\n", gh2->gh_ip);
+	printk(KERN_ERR "original: %pSR\n", (void *)gh2->gh_ip);
 	printk(KERN_ERR "pid: %d\n", pid_nr(gh2->gh_owner_pid));
 	printk(KERN_ERR "lock type: %d req lock state : %d\n",
 	       gh2->gh_gl->gl_name.ln_type, gh2->gh_state);
-	print_symbol(KERN_ERR "new: %s\n", gh->gh_ip);
+	printk(KERN_ERR "new: %pSR\n", (void *)gh->gh_ip);
 	printk(KERN_ERR "pid: %d\n", pid_nr(gh->gh_owner_pid));
 	printk(KERN_ERR "lock type: %d req lock state : %d\n",
 	       gh->gh_gl->gl_name.ln_type, gh->gh_state);
diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c
index 4136270..3d8aa7f 100644
--- a/fs/gfs2/trans.c
+++ b/fs/gfs2/trans.c
@@ -95,7 +95,8 @@ static void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks)
 
 static void gfs2_print_trans(const struct gfs2_trans *tr)
 {
-	print_symbol(KERN_WARNING "GFS2: Transaction created at: %s\n", tr->tr_ip);
+	printk(KERN_WARNING "GFS2: Transaction created at: %pSR\n",
+	       (void *)tr->tr_ip);
 	printk(KERN_WARNING "GFS2: blocks=%u revokes=%u reserved=%u touched=%d\n",
 	       tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, tr->tr_touched);
 	printk(KERN_WARNING "GFS2: Buf %u/%u Databuf %u/%u Revoke %u/%u\n",
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 20/26] sysfs: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (18 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 19/26] gfs2: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 21/26] irq: " Joe Perches
                   ` (9 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina, Greg Kroah-Hartman; +Cc: linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 fs/sysfs/file.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index 602f56d..bd7e59b 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -91,8 +91,8 @@ static int fill_read_buffer(struct dentry * dentry, struct sysfs_buffer * buffer
 	 * indicate truncated result or overflow in normal use cases.
 	 */
 	if (count >= (ssize_t)PAGE_SIZE) {
-		print_symbol("fill_read_buffer: %s returned bad count\n",
-			(unsigned long)ops->show);
+		printk("fill_read_buffer: %pSR returned bad count\n",
+		       ops->show);
 		/* Try to struggle along */
 		count = PAGE_SIZE - 1;
 	}
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 21/26] irq: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (19 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 20/26] sysfs: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 22/26] smp_processor_id: " Joe Perches
                   ` (8 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina, Thomas Gleixner; +Cc: linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 kernel/irq/debug.h |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/kernel/irq/debug.h b/kernel/irq/debug.h
index e75e29e..70f487d9 100644
--- a/kernel/irq/debug.h
+++ b/kernel/irq/debug.h
@@ -13,15 +13,14 @@ static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc)
 {
 	printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n",
 		irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled);
-	printk("->handle_irq():  %p, ", desc->handle_irq);
-	print_symbol("%s\n", (unsigned long)desc->handle_irq);
-	printk("->irq_data.chip(): %p, ", desc->irq_data.chip);
-	print_symbol("%s\n", (unsigned long)desc->irq_data.chip);
+	printk("->handle_irq():  %p, %pSR\n",
+	       desc->handle_irq, desc->handle_irq);
+	printk("->irq_data.chip(): %p, %pSR\n",
+	       desc->irq_data.chip, desc->irq_data.chip);
 	printk("->action(): %p\n", desc->action);
-	if (desc->action) {
-		printk("->action->handler(): %p, ", desc->action->handler);
-		print_symbol("%s\n", (unsigned long)desc->action->handler);
-	}
+	if (desc->action)
+		printk("->action->handler(): %p, %pSR\n",
+		       desc->action->handler, desc->action->handler);
 
 	___P(IRQ_LEVEL);
 	___P(IRQ_PER_CPU);
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 22/26] smp_processor_id: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (20 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 21/26] irq: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 23/26] mm: " Joe Perches
                   ` (7 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 lib/smp_processor_id.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c
index 4c0d0e5..37e59c4 100644
--- a/lib/smp_processor_id.c
+++ b/lib/smp_processor_id.c
@@ -42,7 +42,7 @@ notrace unsigned int debug_smp_processor_id(void)
 	printk(KERN_ERR "BUG: using smp_processor_id() in preemptible [%08x] "
 			"code: %s/%d\n",
 			preempt_count() - 1, current->comm, current->pid);
-	print_symbol("caller is %s\n", (long)__builtin_return_address(0));
+	printk("caller is %pSR\n", __builtin_return_address(0));
 	dump_stack();
 
 out_enable:
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 23/26] mm: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (21 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 22/26] smp_processor_id: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 20:08   ` Christoph Lameter
  2012-12-12 18:19 ` [TRIVIAL PATCH 24/26] xtensa: " Joe Perches
                   ` (6 subsequent siblings)
  29 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina, Christoph Lameter, Pekka Enberg, Matt Mackall
  Cc: linux-mm, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---
 mm/memory.c |    8 ++++----
 mm/slab.c   |    8 +++-----
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/mm/memory.c b/mm/memory.c
index d81bdd7..a14c194 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -711,11 +711,11 @@ static void print_bad_pte(struct vm_area_struct *vma, unsigned long addr,
 	 * Choose text because data symbols depend on CONFIG_KALLSYMS_ALL=y
 	 */
 	if (vma->vm_ops)
-		print_symbol(KERN_ALERT "vma->vm_ops->fault: %s\n",
-				(unsigned long)vma->vm_ops->fault);
+		printk(KERN_ALERT "vma->vm_ops->fault: %pSR\n",
+		       vma->vm_ops->fault);
 	if (vma->vm_file && vma->vm_file->f_op)
-		print_symbol(KERN_ALERT "vma->vm_file->f_op->mmap: %s\n",
-				(unsigned long)vma->vm_file->f_op->mmap);
+		printk(KERN_ALERT "vma->vm_file->f_op->mmap: %pSR\n",
+		       vma->vm_file->f_op->mmap);
 	dump_stack();
 	add_taint(TAINT_BAD_PAGE);
 }
diff --git a/mm/slab.c b/mm/slab.c
index 23daffa..d23ab4f 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -2081,11 +2081,9 @@ static void print_objinfo(struct kmem_cache *cachep, void *objp, int lines)
 	}
 
 	if (cachep->flags & SLAB_STORE_USER) {
-		printk(KERN_ERR "Last user: [<%p>]",
-			*dbg_userword(cachep, objp));
-		print_symbol("(%s)",
-				(unsigned long)*dbg_userword(cachep, objp));
-		printk("\n");
+		printk(KERN_ERR "Last user: [<%p>](%pSR)\n",
+		       *dbg_userword(cachep, objp),
+		       *dbg_userword(cachep, objp));
 	}
 	realobj = (char *)objp + obj_offset(cachep);
 	size = cachep->object_size;
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 24/26] xtensa: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (22 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 23/26] mm: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 25/26] x86: head_64.S: Use vsprintf extension %pSR not print_symbol Joe Perches
                   ` (5 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Rob Landley, Harry Wei, linux-doc, linux-kernel, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving and set a good example for Documentation too.

Signed-off-by: Joe Perches <joe@perches.com>
---
 Documentation/filesystems/sysfs.txt       |    4 ++--
 Documentation/zh_CN/filesystems/sysfs.txt |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt
index a6619b7..9cc7742 100644
--- a/Documentation/filesystems/sysfs.txt
+++ b/Documentation/filesystems/sysfs.txt
@@ -154,8 +154,8 @@ static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
         if (dev_attr->show)
                 ret = dev_attr->show(dev, dev_attr, buf);
         if (ret >= (ssize_t)PAGE_SIZE) {
-                print_symbol("dev_attr_show: %s returned bad count\n",
-                                (unsigned long)dev_attr->show);
+                printk("dev_attr_show: %pSR returned bad count\n",
+                       dev_attr->show);
         }
         return ret;
 }
diff --git a/Documentation/zh_CN/filesystems/sysfs.txt b/Documentation/zh_CN/filesystems/sysfs.txt
index e230eaa..42fc023 100644
--- a/Documentation/zh_CN/filesystems/sysfs.txt
+++ b/Documentation/zh_CN/filesystems/sysfs.txt
@@ -167,8 +167,8 @@ static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
         if (dev_attr->show)
                 ret = dev_attr->show(dev, dev_attr, buf);
         if (ret >= (ssize_t)PAGE_SIZE) {
-                print_symbol("dev_attr_show: %s returned bad count\n",
-                                (unsigned long)dev_attr->show);
+                printk("dev_attr_show: %pSR returned bad count\n",
+                       dev_attr->show);
         }
         return ret;
 }
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 25/26] x86: head_64.S: Use vsprintf extension %pSR not print_symbol
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (23 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 24/26] xtensa: " Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 18:19 ` [TRIVIAL PATCH 26/26] kallsyms: Remove print_symbol Joe Perches
                   ` (4 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-kernel

print_symbol will be removed so replace this instance
with the %pSR vsprintf extension.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/x86/kernel/head_64.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
index 980053c..37575a5 100644
--- a/arch/x86/kernel/head_64.S
+++ b/arch/x86/kernel/head_64.S
@@ -344,7 +344,7 @@ ENTRY(early_idt_handler)
 #ifdef CONFIG_KALLSYMS	
 	leaq early_idt_ripmsg(%rip),%rdi
 	movq 40(%rsp),%rsi	# %rip again
-	call __print_symbol
+	call early_printk
 #endif
 #endif /* EARLY_PRINTK */
 1:	hlt
@@ -372,7 +372,7 @@ early_recursion_flag:
 early_idt_msg:
 	.asciz "PANIC: early exception %02lx rip %lx:%lx error %lx cr2 %lx\n"
 early_idt_ripmsg:
-	.asciz "RIP %s\n"
+	.asciz "RIP %pSR\n"
 #endif /* CONFIG_EARLY_PRINTK */
 	.previous
 
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH 26/26] kallsyms: Remove print_symbol
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (24 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 25/26] x86: head_64.S: Use vsprintf extension %pSR not print_symbol Joe Perches
@ 2012-12-12 18:19 ` Joe Perches
  2012-12-12 19:30 ` [TRIVIAL PATCH V2 24/26] Documentation: Convert print_symbol to %pSR Joe Perches
                   ` (3 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 18:19 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-kernel

This is now unused, remove it.

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/linux/kallsyms.h |   18 ------------------
 kernel/kallsyms.c        |   11 -----------
 2 files changed, 0 insertions(+), 29 deletions(-)

diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h
index 6883e19..b7a60ba 100644
--- a/include/linux/kallsyms.h
+++ b/include/linux/kallsyms.h
@@ -39,9 +39,6 @@ extern int sprint_symbol(char *buffer, unsigned long address);
 extern int sprint_symbol_no_offset(char *buffer, unsigned long address);
 extern int sprint_backtrace(char *buffer, unsigned long address);
 
-/* Look up a kernel symbol and print it to the kernel messages. */
-extern void __print_symbol(const char *fmt, unsigned long address);
-
 int lookup_symbol_name(unsigned long addr, char *symname);
 int lookup_symbol_attrs(unsigned long addr, unsigned long *size, unsigned long *offset, char *modname, char *name);
 
@@ -103,23 +100,8 @@ static inline int lookup_symbol_attrs(unsigned long addr, unsigned long *size, u
 	return -ERANGE;
 }
 
-/* Stupid that this does nothing, but I didn't create this mess. */
-#define __print_symbol(fmt, addr)
 #endif /*CONFIG_KALLSYMS*/
 
-/* This macro allows us to keep printk typechecking */
-static __printf(1, 2)
-void __check_printsym_format(const char *fmt, ...)
-{
-}
-
-static inline void print_symbol(const char *fmt, unsigned long addr)
-{
-	__check_printsym_format(fmt, "");
-	__print_symbol(fmt, (unsigned long)
-		       __builtin_extract_return_addr((void *)addr));
-}
-
 static inline void print_ip_sym(unsigned long ip)
 {
 	printk("[<%p>] %pS\n", (void *) ip, (void *) ip);
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
index 2169fee..6733476 100644
--- a/kernel/kallsyms.c
+++ b/kernel/kallsyms.c
@@ -422,17 +422,6 @@ int sprint_backtrace(char *buffer, unsigned long address)
 	return __sprint_symbol(buffer, address, -1, 1);
 }
 
-/* Look up a kernel symbol and print it to the kernel messages. */
-void __print_symbol(const char *fmt, unsigned long address)
-{
-	char buffer[KSYM_SYMBOL_LEN];
-
-	sprint_symbol(buffer, address);
-
-	printk(fmt, buffer);
-}
-EXPORT_SYMBOL(__print_symbol);
-
 /* To avoid using get_symbol_offset for every symbol, we carry prefix along. */
 struct kallsym_iter {
 	loff_t pos;
-- 
1.7.8.112.g3fd21


^ permalink raw reply related	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH V2 24/26] Documentation: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (25 preceding siblings ...)
  2012-12-12 18:19 ` [TRIVIAL PATCH 26/26] kallsyms: Remove print_symbol Joe Perches
@ 2012-12-12 19:30 ` Joe Perches
  2012-12-13  1:43 ` [TRIVIAL PATCH V2 12/26] s390: " Joe Perches
                   ` (2 subsequent siblings)
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 19:30 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Rob Landley, Harry Wei, linux-doc, linux-kernel, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving and set a good example for Documentation too.

Signed-off-by: Joe Perches <joe@perches.com>
---
V2: Fix commit subject line (Thanks to Marc Gauthier <marc@tensilica.com>)

 Documentation/filesystems/sysfs.txt       |    4 ++--
 Documentation/zh_CN/filesystems/sysfs.txt |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/filesystems/sysfs.txt b/Documentation/filesystems/sysfs.txt
index a6619b7..9cc7742 100644
--- a/Documentation/filesystems/sysfs.txt
+++ b/Documentation/filesystems/sysfs.txt
@@ -154,8 +154,8 @@ static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
         if (dev_attr->show)
                 ret = dev_attr->show(dev, dev_attr, buf);
         if (ret >= (ssize_t)PAGE_SIZE) {
-                print_symbol("dev_attr_show: %s returned bad count\n",
-                                (unsigned long)dev_attr->show);
+                printk("dev_attr_show: %pSR returned bad count\n",
+                       dev_attr->show);
         }
         return ret;
 }
diff --git a/Documentation/zh_CN/filesystems/sysfs.txt b/Documentation/zh_CN/filesystems/sysfs.txt
index e230eaa..42fc023 100644
--- a/Documentation/zh_CN/filesystems/sysfs.txt
+++ b/Documentation/zh_CN/filesystems/sysfs.txt
@@ -167,8 +167,8 @@ static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
         if (dev_attr->show)
                 ret = dev_attr->show(dev, dev_attr, buf);
         if (ret >= (ssize_t)PAGE_SIZE) {
-                print_symbol("dev_attr_show: %s returned bad count\n",
-                                (unsigned long)dev_attr->show);
+                printk("dev_attr_show: %pSR returned bad count\n",
+                       dev_attr->show);
         }
         return ret;
 }
-- 
1.7.8.112.g3fd21



^ permalink raw reply related	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 23/26] mm: Convert print_symbol to %pSR
  2012-12-12 18:19 ` [TRIVIAL PATCH 23/26] mm: " Joe Perches
@ 2012-12-12 20:08   ` Christoph Lameter
  2013-04-29 13:24     ` Jiri Kosina
  0 siblings, 1 reply; 62+ messages in thread
From: Christoph Lameter @ 2012-12-12 20:08 UTC (permalink / raw)
  To: Joe Perches
  Cc: Jiri Kosina, Pekka Enberg, Matt Mackall, linux-mm, linux-kernel

On Wed, 12 Dec 2012, Joe Perches wrote:

> Use the new vsprintf extension to avoid any possible
> message interleaving.

Acked-by: Christoph Lameter <cl@linux.com>


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 18:19 ` [TRIVIAL PATCH 16/26] x86: " Joe Perches
@ 2012-12-12 21:09   ` Borislav Petkov
  2012-12-12 21:30     ` Joe Perches
  0 siblings, 1 reply; 62+ messages in thread
From: Borislav Petkov @ 2012-12-12 21:09 UTC (permalink / raw)
  To: Joe Perches
  Cc: Jiri Kosina, Tony Luck, Jeff Dike, Richard Weinberger,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

On Wed, Dec 12, 2012 at 10:19:05AM -0800, Joe Perches wrote:
> Use the new vsprintf extension to avoid any possible
> message interleaving.
> 
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  arch/x86/kernel/cpu/mcheck/mce.c |   13 +++++++------
>  arch/x86/kernel/dumpstack.c      |    5 ++---
>  arch/x86/kernel/process_32.c     |    2 +-
>  arch/x86/mm/mmio-mod.c           |    4 ++--
>  arch/x86/um/sysrq_32.c           |    9 +++------
>  5 files changed, 15 insertions(+), 18 deletions(-)
> 
> diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
> index 80dbda8..996f98a 100644
> --- a/arch/x86/kernel/cpu/mcheck/mce.c
> +++ b/arch/x86/kernel/cpu/mcheck/mce.c
> @@ -242,13 +242,14 @@ static void print_mce(struct mce *m)
>  	       m->extcpu, m->mcgstatus, m->bank, m->status);
>  
>  	if (m->ip) {
> -		pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> ",
> -			!(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
> -				m->cs, m->ip);
> -
>  		if (m->cs == __KERNEL_CS)
> -			print_symbol("{%s}", m->ip);
> -		pr_cont("\n");
> +			pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> {%pSR}\n",
> +				 !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
> +				 m->cs, m->ip, (void *)m->ip);
> +		else
> +			pr_emerg(HW_ERR "RIP%s %02x:<%016Lx>\n",
> +				 !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
> +				 m->cs, m->ip);
>  	}

I think I'd go ahead and ACK this unless Tony has some comments. I'm not
happy about the two pr_emerg calls based on the conditional.

Or, Tony, what do you think, could we get away if we printed empty
string for when m->cs != __KERNEL_CS? I'm thinking of not breaking any
userspace which is parsing that output and seeing "... {}" in that case.

This assumes that vsprintf can print (void *)0 when passed as an
argument through %pSR. Joe?

Thanks.

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 21:09   ` Borislav Petkov
@ 2012-12-12 21:30     ` Joe Perches
  2012-12-12 21:48       ` Borislav Petkov
  2012-12-12 21:49       ` Luck, Tony
  0 siblings, 2 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-12 21:30 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: Jiri Kosina, Tony Luck, Jeff Dike, Richard Weinberger,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

On Wed, 2012-12-12 at 22:09 +0100, Borislav Petkov wrote:
> On Wed, Dec 12, 2012 at 10:19:05AM -0800, Joe Perches wrote:
> > Use the new vsprintf extension to avoid any possible
> > message interleaving.
[]
> > diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
[]
> > @@ -242,13 +242,14 @@ static void print_mce(struct mce *m)
> >  	       m->extcpu, m->mcgstatus, m->bank, m->status);
> >  
> >  	if (m->ip) {
> > -		pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> ",
> > -			!(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
> > -				m->cs, m->ip);
> > -
> >  		if (m->cs == __KERNEL_CS)
> > -			print_symbol("{%s}", m->ip);
> > -		pr_cont("\n");
> > +			pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> {%pSR}\n",
> > +				 !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
> > +				 m->cs, m->ip, (void *)m->ip);
> > +		else
> > +			pr_emerg(HW_ERR "RIP%s %02x:<%016Lx>\n",
> > +				 !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
> > +				 m->cs, m->ip);
> >  	}
> 
> I think I'd go ahead and ACK this unless Tony has some comments. I'm not
> happy about the two pr_emerg calls based on the conditional.

It was done to avoid interleaving.

> Or, Tony, what do you think, could we get away if we printed empty
> string for when m->cs != __KERNEL_CS? I'm thinking of not breaking any
> userspace which is parsing that output and seeing "... {}" in that case.
> 
> This assumes that vsprintf can print (void *)0 when passed as an
> argument through %pSR. Joe?

Definitely yes when not #defined CONFIG_KALLSYMS

I believe no object exists at address 0 for all
arches so I believe yes for CONFIG_KALLSYMS too,

My preference is to eventually do away with all the
	"[%0(size)lx] %pSR", addr, (void *)addr
uses and create another %pSx that emits the pointer
address and the function/offset in one go in a
standardized style without caring about the pointer
size.

Something like:

	"%pSp", (void *)addr

would emit

	[<7def0123>] function_name+offset/size



^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 21:30     ` Joe Perches
@ 2012-12-12 21:48       ` Borislav Petkov
  2012-12-12 21:49       ` Luck, Tony
  1 sibling, 0 replies; 62+ messages in thread
From: Borislav Petkov @ 2012-12-12 21:48 UTC (permalink / raw)
  To: Joe Perches
  Cc: Jiri Kosina, Tony Luck, Jeff Dike, Richard Weinberger,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

On Wed, Dec 12, 2012 at 01:30:03PM -0800, Joe Perches wrote:
> > I think I'd go ahead and ACK this unless Tony has some comments. I'm
> > not happy about the two pr_emerg calls based on the conditional.
>
> It was done to avoid interleaving.

Right.

> > Or, Tony, what do you think, could we get away if we printed empty
> > string for when m->cs != __KERNEL_CS? I'm thinking of not breaking any
> > userspace which is parsing that output and seeing "... {}" in that case.
> > 
> > This assumes that vsprintf can print (void *)0 when passed as an
> > argument through %pSR. Joe?
> 
> Definitely yes when not #defined CONFIG_KALLSYMS
> 
> I believe no object exists at address 0 for all
> arches so I believe yes for CONFIG_KALLSYMS too,

Ok, here's what I'm thinking more specifically. Have single call like this:

	pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> {%pSR}\n",
			!(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
			m->cs, m->ip,
			(m->cs == __KERNEL_CS) ? (void *)m->ip : (void *)0);

and when vsprintf gets to it, it recognizes the special case of
(void *)0 and dumps the empty string "" for that argument.

Hmm.

> My preference is to eventually do away with all the
> 	"[%0(size)lx] %pSR", addr, (void *)addr
> uses and create another %pSx that emits the pointer
> address and the function/offset in one go in a
> standardized style without caring about the pointer
> size.
> 
> Something like:
> 
> 	"%pSp", (void *)addr
> 
> would emit
> 
> 	[<7def0123>] function_name+offset/size

Right, this is another way of looking it. And in order to make it more
robust, it should be able to handle the (void *)0 case so that callers
don't have to check the arg.

Thanks.

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

^ permalink raw reply	[flat|nested] 62+ messages in thread

* RE: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 21:30     ` Joe Perches
  2012-12-12 21:48       ` Borislav Petkov
@ 2012-12-12 21:49       ` Luck, Tony
  2012-12-12 22:23         ` Joe Perches
  1 sibling, 1 reply; 62+ messages in thread
From: Luck, Tony @ 2012-12-12 21:49 UTC (permalink / raw)
  To: Joe Perches, Borislav Petkov
  Cc: Jiri Kosina, Jeff Dike, Richard Weinberger, Thomas Gleixner,
	Ingo Molnar, H. Peter Anvin, x86, linux-edac, linux-kernel,
	user-mode-linux-devel, user-mode-linux-user

> I think I'd go ahead and ACK this unless Tony has some comments. I'm not
> happy about the two pr_emerg calls based on the conditional.

As written the patch has the nice property of not making any changes to the
console output (except to eliminate the possibility of interleaved output that
the original code had).  Whereas making the change you suggest would end
up with a useless "{}" in the usermode case (or worse if %pSR did something
with m->ip .. which is most probably not NULL ... it should be a valid user mode
instruction pointer when m->cs != KERNEL_CS).

So Acked-by: Tony Luck <tony.luck@intel.com>


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 21:49       ` Luck, Tony
@ 2012-12-12 22:23         ` Joe Perches
  2012-12-12 22:45           ` Borislav Petkov
  0 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-12 22:23 UTC (permalink / raw)
  To: Luck, Tony
  Cc: Borislav Petkov, Jiri Kosina, Jeff Dike, Richard Weinberger,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

On Wed, 2012-12-12 at 21:49 +0000, Luck, Tony wrote:
> > I think I'd go ahead and ACK this unless Tony has some comments. I'm not
> > happy about the two pr_emerg calls based on the conditional.
> 
> As written the patch has the nice property of not making any changes to the
> console output (except to eliminate the possibility of interleaved output that
> the original code had).

Well, it does eliminate a trailing space when m->cs != KERNEL_CS.
That probably won't hurt anything, but...



^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 22:23         ` Joe Perches
@ 2012-12-12 22:45           ` Borislav Petkov
  2012-12-13 18:23             ` Joe Perches
  0 siblings, 1 reply; 62+ messages in thread
From: Borislav Petkov @ 2012-12-12 22:45 UTC (permalink / raw)
  To: Joe Perches
  Cc: Luck, Tony, Jiri Kosina, Jeff Dike, Richard Weinberger,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

On Wed, Dec 12, 2012 at 02:23:59PM -0800, Joe Perches wrote:
> On Wed, 2012-12-12 at 21:49 +0000, Luck, Tony wrote:
> > > I think I'd go ahead and ACK this unless Tony has some comments. I'm not
> > > happy about the two pr_emerg calls based on the conditional.
> > 
> > As written the patch has the nice property of not making any changes to the
> > console output (except to eliminate the possibility of interleaved output that
> > the original code had).
> 
> Well, it does eliminate a trailing space when m->cs != KERNEL_CS.
> That probably won't hurt anything, but...

Yeah, that won't be an issue. So let's take it as is, as Tony suggests.

Acked-by: Borislav Petkov <bp@alien8.de>

Thanks.

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: 答复: [TRIVIAL PATCH 15/26] unicore32: Convert print_symbol to %pSR
       [not found]   ` <001d01cdd8cd$371dfd60$a559f820$@mprc.pku.edu.cn>
@ 2012-12-13  1:21     ` Joe Perches
  2012-12-13  2:00       ` Chen Gang
  2012-12-13  2:26     ` Joe Perches
  1 sibling, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-13  1:21 UTC (permalink / raw)
  To: Guan Xuetao; +Cc: 'Jiri Kosina', linux-kernel

On Thu, 2012-12-13 at 09:00 +0800, Guan Xuetao wrote:
> 确认下面的patch可以正常编译,无warning信息

I'm afraid I can't read this.
Anyone have an English translation?


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 12/26] s390: Convert print_symbol to %pSR
  2012-12-12 18:19 ` [TRIVIAL PATCH 12/26] s390: " Joe Perches
@ 2012-12-13  1:22   ` Joe Perches
  0 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-13  1:22 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Martin Schwidefsky, Heiko Carstens, linux390, linux-s390, linux-kernel

On Wed, 2012-12-12 at 10:19 -0800, Joe Perches wrote:
> Use the new vsprintf extension to avoid any possible
> message interleaving.
[]
> diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
[]
> @@ -91,8 +91,9 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
>  		if (sp < low || sp > high - sizeof(*sf))
>  			return sp;
>  		sf = (struct stack_frame *) sp;
> -		printk("([<%016lx>] ", sf->gprs[8] & PSW_ADDR_INSN);
> -		print_symbol("%s)\n", sf->gprs[8] & PSW_ADDR_INSN);
> +		printk("([<%016lx>] %pSR\n",

Sorry, this is defective, it needs a trailing ')' like:

+		printk("([<%016lx>] %pSR)\n",

> @@ -102,16 +103,18 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
>  			if (sp <= low || sp > high - sizeof(*sf))
>  				return sp;
>  			sf = (struct stack_frame *) sp;
> -			printk(" [<%016lx>] ", sf->gprs[8] & PSW_ADDR_INSN);
> -			print_symbol("%s\n", sf->gprs[8] & PSW_ADDR_INSN);
> +			printk(" [<%016lx>] %pSR\n",

here too

I'll resubmit.


^ permalink raw reply	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH V2 12/26] s390: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (26 preceding siblings ...)
  2012-12-12 19:30 ` [TRIVIAL PATCH V2 24/26] Documentation: Convert print_symbol to %pSR Joe Perches
@ 2012-12-13  1:43 ` Joe Perches
  2012-12-13 19:13 ` [TRIVIAL PATCH V2 16/26] x86: " Joe Perches
  2013-01-08  5:52 ` [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-13  1:43 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Martin Schwidefsky, Heiko Carstens, linux390, linux-s390, linux-kernel

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
---

V2: Add missing parentheses, remove comma

 arch/s390/kernel/traps.c |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/arch/s390/kernel/traps.c b/arch/s390/kernel/traps.c
index 70ecfc5..f718e12 100644
--- a/arch/s390/kernel/traps.c
+++ b/arch/s390/kernel/traps.c
@@ -91,8 +91,9 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
 		if (sp < low || sp > high - sizeof(*sf))
 			return sp;
 		sf = (struct stack_frame *) sp;
-		printk("([<%016lx>] ", sf->gprs[8] & PSW_ADDR_INSN);
-		print_symbol("%s)\n", sf->gprs[8] & PSW_ADDR_INSN);
+		printk("([<%016lx>] %pSR)\n",
+		       sf->gprs[8] & PSW_ADDR_INSN,
+		       (void *)(sf->gprs[8] & PSW_ADDR_INSN));
 		/* Follow the backchain. */
 		while (1) {
 			low = sp;
@@ -102,16 +103,18 @@ __show_trace(unsigned long sp, unsigned long low, unsigned long high)
 			if (sp <= low || sp > high - sizeof(*sf))
 				return sp;
 			sf = (struct stack_frame *) sp;
-			printk(" [<%016lx>] ", sf->gprs[8] & PSW_ADDR_INSN);
-			print_symbol("%s\n", sf->gprs[8] & PSW_ADDR_INSN);
+			printk(" [<%016lx>] %pSR\n",
+			       sf->gprs[8] & PSW_ADDR_INSN,
+			       (void *)(sf->gprs[8] & PSW_ADDR_INSN));
 		}
 		/* Zero backchain detected, check for interrupt frame. */
 		sp = (unsigned long) (sf + 1);
 		if (sp <= low || sp > high - sizeof(*regs))
 			return sp;
 		regs = (struct pt_regs *) sp;
-		printk(" [<%016lx>] ", regs->psw.addr & PSW_ADDR_INSN);
-		print_symbol("%s\n", regs->psw.addr & PSW_ADDR_INSN);
+		printk(" [<%016lx>] %pSR\n",
+		       regs->psw.addr & PSW_ADDR_INSN,
+		       (void *)(regs->psw.addr & PSW_ADDR_INSN));
 		low = sp;
 		sp = regs->gprs[15];
 	}
@@ -169,8 +172,9 @@ static void show_last_breaking_event(struct pt_regs *regs)
 {
 #ifdef CONFIG_64BIT
 	printk("Last Breaking-Event-Address:\n");
-	printk(" [<%016lx>] ", regs->args[0] & PSW_ADDR_INSN);
-	print_symbol("%s\n", regs->args[0] & PSW_ADDR_INSN);
+	printk(" [<%016lx>] %pSR\n",
+	       regs->args[0] & PSW_ADDR_INSN,
+	       (void *)(regs->args[0] & PSW_ADDR_INSN));
 #endif
 }
 
@@ -201,10 +205,10 @@ void show_registers(struct pt_regs *regs)
 	char *mode;
 
 	mode = user_mode(regs) ? "User" : "Krnl";
-	printk("%s PSW : %p %p",
-	       mode, (void *) regs->psw.mask,
-	       (void *) regs->psw.addr);
-	print_symbol(" (%s)\n", regs->psw.addr & PSW_ADDR_INSN);
+	printk("%s PSW : %p %p (%pSR)\n",
+	       mode, (void *)regs->psw.mask,
+	       (void *)regs->psw.addr,
+	       (void *)(regs->psw.addr & PSW_ADDR_INSN));
 	printk("           R:%x T:%x IO:%x EX:%x Key:%x M:%x W:%x "
 	       "P:%x AS:%x CC:%x PM:%x", mask_bits(regs, PSW_MASK_PER),
 	       mask_bits(regs, PSW_MASK_DAT), mask_bits(regs, PSW_MASK_IO),
-- 
1.7.8.112.g3fd21



^ permalink raw reply related	[flat|nested] 62+ messages in thread

* Re: 答复: [TRIVIAL PATCH 15/26] unicore32: Convert print_symbol to %pSR
  2012-12-13  1:21     ` 答复: " Joe Perches
@ 2012-12-13  2:00       ` Chen Gang
  0 siblings, 0 replies; 62+ messages in thread
From: Chen Gang @ 2012-12-13  2:00 UTC (permalink / raw)
  To: Joe Perches; +Cc: Guan Xuetao, 'Jiri Kosina', linux-kernel

于 2012年12月13日 09:21, Joe Perches 写道:
> On Thu, 2012-12-13 at 09:00 +0800, Guan Xuetao wrote:
>> 确认下面的patch可以正常编译,无warning信息

   please be sure that the patch below can pass compiling, without warnings


> 
> I'm afraid I can't read this.
> Anyone have an English translation?
> 

  I can try (although I do not known the details of this patch)

  :-)

> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 


-- 
Chen Gang

Asianux Corporation

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: 答复: [TRIVIAL PATCH 15/26] unicore32: Convert print_symbol to %pSR
       [not found]   ` <001d01cdd8cd$371dfd60$a559f820$@mprc.pku.edu.cn>
  2012-12-13  1:21     ` 答复: " Joe Perches
@ 2012-12-13  2:26     ` Joe Perches
  1 sibling, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-13  2:26 UTC (permalink / raw)
  To: Guan Xuetao; +Cc: 'Jiri Kosina', linux-kernel

On Thu, 2012-12-13 at 09:00 +0800, Guan Xuetao wrote:
> 确认下面的patch可以正常编译,无warning信息

There is no unicore32 cross compiler available
on kernel.org.

ftp://ftp.kernel.org/pub/tools/crosstool/index.html

These are unsigned long cast to (void *)
What is the warning and how does it differ
from any existing warning?

> > diff --git a/arch/unicore32/kernel/process.c
[]
> > @@ -169,8 +169,9 @@ void __show_regs(struct pt_regs *regs)
> >  		init_utsname()->release,
> >  		(int)strcspn(init_utsname()->version, " "),
> >  		init_utsname()->version);
> > -	print_symbol("PC is at %s\n", instruction_pointer(regs));
> > -	print_symbol("LR is at %s\n", regs->UCreg_lr);
> > +	printk(KERN_DEFAULT "PC is at %pSR\n",
> > +	       (void *)instruction_pointer(regs));
> > +	printk(KERN_DEFAULT "LR is at %pSR\n", (void *)regs->UCreg_lr);
> >  	printk(KERN_DEFAULT "pc : [<%08lx>]    lr : [<%08lx>]    psr:
> %08lx\n"
> >  	       "sp : %08lx  ip : %08lx  fp : %08lx\n",
> >  		regs->UCreg_pc, regs->UCreg_lr, regs->UCreg_asr,



^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 08/26] m32r: Convert print_symbol to %pSR
  2012-12-12 18:18 ` [TRIVIAL PATCH 08/26] m32r: " Joe Perches
@ 2012-12-13  3:06   ` Hirokazu Takata
  2013-04-29 13:21     ` Jiri Kosina
  0 siblings, 1 reply; 62+ messages in thread
From: Hirokazu Takata @ 2012-12-13  3:06 UTC (permalink / raw)
  To: Joe Perches
  Cc: Jiri Kosina, Hirokazu Takata, linux-m32r, linux-m32r-ja, linux-kernel

Acked-by: Hirokazu Takata <takata@linux-m32r.org>

Thank you.

From: Joe Perches <joe@perches.com>
Subject: [TRIVIAL PATCH 08/26] m32r: Convert print_symbol to %pSR
Date: Wed, 12 Dec 2012 10:18:57 -0800
> Use the new vsprintf extension to avoid any possible
> message interleaving.
> 
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  arch/m32r/kernel/traps.c |    6 ++----
>  1 files changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/m32r/kernel/traps.c b/arch/m32r/kernel/traps.c
> index 3bcb207..9fe3467 100644
> --- a/arch/m32r/kernel/traps.c
> +++ b/arch/m32r/kernel/traps.c
> @@ -132,10 +132,8 @@ static void show_trace(struct task_struct *task, unsigned long *stack)
>  	printk("Call Trace: ");
>  	while (!kstack_end(stack)) {
>  		addr = *stack++;
> -		if (__kernel_text_address(addr)) {
> -			printk("[<%08lx>] ", addr);
> -			print_symbol("%s\n", addr);
> -		}
> +		if (__kernel_text_address(addr))
> +			printk("[<%08lx>] %pSR\n", addr, (void *)addr);
>  	}
>  	printk("\n");
>  }
> -- 
> 1.7.8.112.g3fd21
> 

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 15/26] unicore32: Convert print_symbol to %pSR
       [not found]   ` <19e6ea369e4455fc447c48f72bd433921bd0a703.1355335228.git.joe@perches.c om>
@ 2012-12-13  5:05     ` guanxuetao
  0 siblings, 0 replies; 62+ messages in thread
From: guanxuetao @ 2012-12-13  5:05 UTC (permalink / raw)
  To: Joe Perches; +Cc: Jiri Kosina, Guan Xuetao, linux-kernel

> Use the new vsprintf extension to avoid any possible
> message interleaving.
>
> Signed-off-by: Joe Perches <joe@perches.com>

Sorry for my last email, which should not reply all.

Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>

> ---
>  arch/unicore32/kernel/process.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/arch/unicore32/kernel/process.c
> b/arch/unicore32/kernel/process.c
> index 62bad9f..d17a893 100644
> --- a/arch/unicore32/kernel/process.c
> +++ b/arch/unicore32/kernel/process.c
> @@ -169,8 +169,9 @@ void __show_regs(struct pt_regs *regs)
>  		init_utsname()->release,
>  		(int)strcspn(init_utsname()->version, " "),
>  		init_utsname()->version);
> -	print_symbol("PC is at %s\n", instruction_pointer(regs));
> -	print_symbol("LR is at %s\n", regs->UCreg_lr);
> +	printk(KERN_DEFAULT "PC is at %pSR\n",
> +	       (void *)instruction_pointer(regs));
> +	printk(KERN_DEFAULT "LR is at %pSR\n", (void *)regs->UCreg_lr);
>  	printk(KERN_DEFAULT "pc : [<%08lx>]    lr : [<%08lx>]    psr: %08lx\n"
>  	       "sp : %08lx  ip : %08lx  fp : %08lx\n",
>  		regs->UCreg_pc, regs->UCreg_lr, regs->UCreg_asr,
> --
> 1.7.8.112.g3fd21
>


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 19/26] gfs2: Convert print_symbol to %pSR
  2012-12-12 18:19 ` [TRIVIAL PATCH 19/26] gfs2: " Joe Perches
@ 2012-12-13 10:57   ` Steven Whitehouse
  2013-04-29 13:23     ` Jiri Kosina
  0 siblings, 1 reply; 62+ messages in thread
From: Steven Whitehouse @ 2012-12-13 10:57 UTC (permalink / raw)
  To: Joe Perches; +Cc: Jiri Kosina, cluster-devel, linux-kernel

Hi,

Acked-by: Steven Whitehouse <swhiteho@redhat.com>

Steve.

On Wed, 2012-12-12 at 10:19 -0800, Joe Perches wrote:
> Use the new vsprintf extension to avoid any possible
> message interleaving.
> 
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  fs/gfs2/glock.c |    4 ++--
>  fs/gfs2/trans.c |    3 ++-
>  2 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c
> index 992c5c0..453978b 100644
> --- a/fs/gfs2/glock.c
> +++ b/fs/gfs2/glock.c
> @@ -1016,11 +1016,11 @@ do_cancel:
>  	return;
>  
>  trap_recursive:
> -	print_symbol(KERN_ERR "original: %s\n", gh2->gh_ip);
> +	printk(KERN_ERR "original: %pSR\n", (void *)gh2->gh_ip);
>  	printk(KERN_ERR "pid: %d\n", pid_nr(gh2->gh_owner_pid));
>  	printk(KERN_ERR "lock type: %d req lock state : %d\n",
>  	       gh2->gh_gl->gl_name.ln_type, gh2->gh_state);
> -	print_symbol(KERN_ERR "new: %s\n", gh->gh_ip);
> +	printk(KERN_ERR "new: %pSR\n", (void *)gh->gh_ip);
>  	printk(KERN_ERR "pid: %d\n", pid_nr(gh->gh_owner_pid));
>  	printk(KERN_ERR "lock type: %d req lock state : %d\n",
>  	       gh->gh_gl->gl_name.ln_type, gh->gh_state);
> diff --git a/fs/gfs2/trans.c b/fs/gfs2/trans.c
> index 4136270..3d8aa7f 100644
> --- a/fs/gfs2/trans.c
> +++ b/fs/gfs2/trans.c
> @@ -95,7 +95,8 @@ static void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks)
>  
>  static void gfs2_print_trans(const struct gfs2_trans *tr)
>  {
> -	print_symbol(KERN_WARNING "GFS2: Transaction created at: %s\n", tr->tr_ip);
> +	printk(KERN_WARNING "GFS2: Transaction created at: %pSR\n",
> +	       (void *)tr->tr_ip);
>  	printk(KERN_WARNING "GFS2: blocks=%u revokes=%u reserved=%u touched=%d\n",
>  	       tr->tr_blocks, tr->tr_revokes, tr->tr_reserved, tr->tr_touched);
>  	printk(KERN_WARNING "GFS2: Buf %u/%u Databuf %u/%u Revoke %u/%u\n",



^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 11/26] powerpc: Convert print_symbol to %pSR
  2012-12-12 18:19 ` [TRIVIAL PATCH 11/26] powerpc: " Joe Perches
@ 2012-12-13 11:58   ` Arnd Bergmann
  2013-01-10  5:48     ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 62+ messages in thread
From: Arnd Bergmann @ 2012-12-13 11:58 UTC (permalink / raw)
  To: Joe Perches
  Cc: Jiri Kosina, Benjamin Herrenschmidt, Paul Mackerras,
	linuxppc-dev, cbe-oss-dev, linux-kernel

On Wednesday 12 December 2012, Joe Perches wrote:
> Use the new vsprintf extension to avoid any possible
> message interleaving.
> 
> Convert the #ifdef DEBUG block to a single pr_debug.
> 
> Signed-off-by: Joe Perches <joe@perches.com>

nice cleanup!

Acked-by: Arnd Bergmann <arnd@arndb.de>

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 04/26] arm64: Convert print_symbol to %pSR
  2012-12-12 18:18 ` [TRIVIAL PATCH 04/26] arm64: " Joe Perches
@ 2012-12-13 18:03   ` Catalin Marinas
  0 siblings, 0 replies; 62+ messages in thread
From: Catalin Marinas @ 2012-12-13 18:03 UTC (permalink / raw)
  To: Joe Perches; +Cc: Jiri Kosina, linux-arm-kernel, linux-kernel

On Wed, Dec 12, 2012 at 06:18:53PM +0000, Joe Perches wrote:
> Use the new vsprintf extension to avoid any possible
> message interleaving.
> 
> Signed-off-by: Joe Perches <joe@perches.com>

Acked-by: Catalin Marinas <catalin.marinas@arm.com>


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 22:45           ` Borislav Petkov
@ 2012-12-13 18:23             ` Joe Perches
  2012-12-13 18:37               ` Borislav Petkov
  0 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2012-12-13 18:23 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: Luck, Tony, Jiri Kosina, Jeff Dike, Richard Weinberger,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

On Wed, 2012-12-12 at 23:45 +0100, Borislav Petkov wrote:
> On Wed, Dec 12, 2012 at 02:23:59PM -0800, Joe Perches wrote:
> > On Wed, 2012-12-12 at 21:49 +0000, Luck, Tony wrote:
> > > > I think I'd go ahead and ACK this unless Tony has some comments. I'm not
> > > > happy about the two pr_emerg calls based on the conditional.
> > > 
> > > As written the patch has the nice property of not making any changes to the
> > > console output (except to eliminate the possibility of interleaved output that
> > > the original code had).
> > 
> > Well, it does eliminate a trailing space when m->cs != KERNEL_CS.
> > That probably won't hurt anything, but...
> 
> Yeah, that won't be an issue. So let's take it as is, as Tony suggests.

Hi again Boris.

I should mention one more thing.

m->ip is a u64 so, when compiling x86-32, there's a new warning
"cast to pointer from integer of different size".  This isn't new
different behavior, just a new warning.  The previous print_symbol
took a ulong and the u64 was silently truncated.

  CC      arch/x86/kernel/cpu/mcheck/mce.o
arch/x86/kernel/cpu/mcheck/mce.c: In function ‘print_mce’:
arch/x86/kernel/cpu/mcheck/mce.c:246:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

If appropriate, the code could be changed to

	(void *)(unsigned long)m->ip

to shut the compiler up.


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-13 18:23             ` Joe Perches
@ 2012-12-13 18:37               ` Borislav Petkov
  2012-12-13 18:42                 ` H. Peter Anvin
  2012-12-13 18:57                 ` Joe Perches
  0 siblings, 2 replies; 62+ messages in thread
From: Borislav Petkov @ 2012-12-13 18:37 UTC (permalink / raw)
  To: Joe Perches
  Cc: Luck, Tony, Jiri Kosina, Jeff Dike, Richard Weinberger,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

On Thu, Dec 13, 2012 at 10:23:10AM -0800, Joe Perches wrote:
> m->ip is a u64 so, when compiling x86-32, there's a new warning
> "cast to pointer from integer of different size".  This isn't new
> different behavior, just a new warning.  The previous print_symbol
> took a ulong and the u64 was silently truncated.
> 
>   CC      arch/x86/kernel/cpu/mcheck/mce.o
> arch/x86/kernel/cpu/mcheck/mce.c: In function ‘print_mce’:
> arch/x86/kernel/cpu/mcheck/mce.c:246:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> 
> If appropriate, the code could be changed to
> 
> 	(void *)(unsigned long)m->ip

Can we explicitly cast it to what it is so that we can be explicit as to
what we're casting it? IOW:

	(void *)(__u64)m->ip;

Does that even work on 32bit?

Also, does the compiler bitch about this useless cast when building with
W=123?

Thanks.

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-13 18:37               ` Borislav Petkov
@ 2012-12-13 18:42                 ` H. Peter Anvin
  2012-12-13 19:05                   ` Borislav Petkov
  2012-12-13 18:57                 ` Joe Perches
  1 sibling, 1 reply; 62+ messages in thread
From: H. Peter Anvin @ 2012-12-13 18:42 UTC (permalink / raw)
  To: Borislav Petkov, Joe Perches, Luck, Tony, Jiri Kosina, Jeff Dike,
	Richard Weinberger, Thomas Gleixner, Ingo Molnar, x86,
	linux-edac, linux-kernel, user-mode-linux-devel,
	user-mode-linux-user

On 12/13/2012 10:37 AM, Borislav Petkov wrote:
>>
>> If appropriate, the code could be changed to
>>
>> 	(void *)(unsigned long)m->ip
> 
> Can we explicitly cast it to what it is so that we can be explicit as to
> what we're casting it? IOW:
> 
> 	(void *)(__u64)m->ip;
> 
> Does that even work on 32bit?
> 
> Also, does the compiler bitch about this useless cast when building with
> W=123?
> 

Uh... no.

The point is that (void *)(unsigned long) casts it to an integer of
pointer size -- in userspace you would to (void *)(size_t) or (void
*)(uintptr_t) -- so that the compiler knows "I meant to do that."

	-hpa



^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-13 18:37               ` Borislav Petkov
  2012-12-13 18:42                 ` H. Peter Anvin
@ 2012-12-13 18:57                 ` Joe Perches
  1 sibling, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-13 18:57 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: Luck, Tony, Jiri Kosina, Jeff Dike, Richard Weinberger,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

On Thu, 2012-12-13 at 19:37 +0100, Borislav Petkov wrote:
> On Thu, Dec 13, 2012 at 10:23:10AM -0800, Joe Perches wrote:
> > m->ip is a u64 so, when compiling x86-32, there's a new warning
> > "cast to pointer from integer of different size".  This isn't new
> > different behavior, just a new warning.  The previous print_symbol
> > took a ulong and the u64 was silently truncated.
> > 
> >   CC      arch/x86/kernel/cpu/mcheck/mce.o
> > arch/x86/kernel/cpu/mcheck/mce.c: In function ‘print_mce’:
> > arch/x86/kernel/cpu/mcheck/mce.c:246:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> > 
> > If appropriate, the code could be changed to
> > 
> > 	(void *)(unsigned long)m->ip
> 
> Can we explicitly cast it to what it is so that we can be explicit as to
> what we're casting it? IOW:
> 
> 	(void *)(__u64)m->ip;
> 
> Does that even work on 32bit?

No, it already is __u64.  You need (unsigned long)
or something else the same size as (void *)

from: arch/x86/include/asm/mce.h

/* Fields are zero when not available */
struct mce {
...
	__u64 ip;

> Also, does the compiler bitch about this useless cast when building with
> W=123?

For x86-32:

With the cast the line is silent.
Without the cast, just the warning about cast.


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-13 18:42                 ` H. Peter Anvin
@ 2012-12-13 19:05                   ` Borislav Petkov
  2012-12-13 21:35                     ` H. Peter Anvin
  0 siblings, 1 reply; 62+ messages in thread
From: Borislav Petkov @ 2012-12-13 19:05 UTC (permalink / raw)
  To: H. Peter Anvin
  Cc: Joe Perches, Luck, Tony, Jiri Kosina, Jeff Dike,
	Richard Weinberger, Thomas Gleixner, Ingo Molnar, x86,
	linux-edac, linux-kernel, user-mode-linux-devel,
	user-mode-linux-user

On Thu, Dec 13, 2012 at 10:42:28AM -0800, H. Peter Anvin wrote:
> On 12/13/2012 10:37 AM, Borislav Petkov wrote:
> >>
> >> If appropriate, the code could be changed to
> >>
> >> 	(void *)(unsigned long)m->ip
> > 
> > Can we explicitly cast it to what it is so that we can be explicit as to
> > what we're casting it? IOW:
> > 
> > 	(void *)(__u64)m->ip;
> > 
> > Does that even work on 32bit?
> > 
> > Also, does the compiler bitch about this useless cast when building with
> > W=123?
> > 
> 
> Uh... no.
> 
> The point is that (void *)(unsigned long) casts it to an integer of
> pointer size -- in userspace you would to (void *)(size_t) or (void
> *)(uintptr_t) -- so that the compiler knows "I meant to do that."

Ok, I grok it now. So, in most cases, mce.ip comes from pt_regs.ip which
is unsigned long so we're fine for both 32- and 64-bit. There's only the
case with precise RIP reporting where we get the rip from an MSR but
even then, it should be 4 bytes on 32-bit since our addresses there are
4 bytes.

So, actually struct mce should've had ->ip defined as an unsigned long
from the very beginning. But we can't change that now because this
struct is shared with userspace :(

So yes Joe, make it (void *)(unsigned long).

Thanks guys.

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

^ permalink raw reply	[flat|nested] 62+ messages in thread

* [TRIVIAL PATCH V2 16/26] x86: Convert print_symbol to %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (27 preceding siblings ...)
  2012-12-13  1:43 ` [TRIVIAL PATCH V2 12/26] s390: " Joe Perches
@ 2012-12-13 19:13 ` Joe Perches
  2013-01-08  5:52 ` [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
  29 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2012-12-13 19:13 UTC (permalink / raw)
  To: Jiri Kosina, Tony Luck, Borislav Petkov, Jeff Dike, Richard Weinberger
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, linux-edac,
	linux-kernel, user-mode-linux-devel, user-mode-linux-user

Use the new vsprintf extension to avoid any possible
message interleaving.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Acked-by: Borislav Petkov <bp@alien8.de>
---

V2: mce.c: Add cast to (unsigned long) before cast to (void *)
    to quiet the compiler on x86-32

 arch/x86/kernel/cpu/mcheck/mce.c |   13 +++++++------
 arch/x86/kernel/dumpstack.c      |    5 ++---
 arch/x86/kernel/process_32.c     |    2 +-
 arch/x86/mm/mmio-mod.c           |    4 ++--
 arch/x86/um/sysrq_32.c           |    9 +++------
 5 files changed, 15 insertions(+), 18 deletions(-)

diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
index 80dbda8..996f98a 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -242,13 +242,14 @@ static void print_mce(struct mce *m)
 	       m->extcpu, m->mcgstatus, m->bank, m->status);
 
 	if (m->ip) {
-		pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> ",
-			!(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
-				m->cs, m->ip);
-
 		if (m->cs == __KERNEL_CS)
-			print_symbol("{%s}", m->ip);
-		pr_cont("\n");
+			pr_emerg(HW_ERR "RIP%s %02x:<%016Lx> {%pSR}\n",
+				 !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
+				 m->cs, m->ip, (void *)(unsigned long)m->ip);
+		else
+			pr_emerg(HW_ERR "RIP%s %02x:<%016Lx>\n",
+				 !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
+				 m->cs, m->ip);
 	}
 
 	pr_emerg(HW_ERR "TSC %llx ", m->tsc);
diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c
index ae42418b..b6e5bdb 100644
--- a/arch/x86/kernel/dumpstack.c
+++ b/arch/x86/kernel/dumpstack.c
@@ -281,9 +281,8 @@ int __kprobes __die(const char *str, struct pt_regs *regs, long err)
 		sp = kernel_stack_pointer(regs);
 		savesegment(ss, ss);
 	}
-	printk(KERN_EMERG "EIP: [<%08lx>] ", regs->ip);
-	print_symbol("%s", regs->ip);
-	printk(" SS:ESP %04x:%08lx\n", ss, sp);
+	printk(KERN_EMERG "EIP: [<%08lx>] %pSR SS:ESP %04x:%08lx\n",
+	       regs->ip, (void *)regs->ip, ss, sp);
 #else
 	/* Executive summary in case the oops scrolled away */
 	printk(KERN_ALERT "RIP ");
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index b5a8905..0db77e0 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -89,7 +89,7 @@ void __show_regs(struct pt_regs *regs, int all)
 	printk(KERN_DEFAULT "EIP: %04x:[<%08lx>] EFLAGS: %08lx CPU: %d\n",
 			(u16)regs->cs, regs->ip, regs->flags,
 			smp_processor_id());
-	print_symbol("EIP is at %s\n", regs->ip);
+	printk(KERN_DEFAULT "EIP is at %pSR\n", (void *)regs->ip);
 
 	printk(KERN_DEFAULT "EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
 		regs->ax, regs->bx, regs->cx, regs->dx);
diff --git a/arch/x86/mm/mmio-mod.c b/arch/x86/mm/mmio-mod.c
index dc0b727..c0ca484 100644
--- a/arch/x86/mm/mmio-mod.c
+++ b/arch/x86/mm/mmio-mod.c
@@ -123,8 +123,8 @@ static void die_kmmio_nesting_error(struct pt_regs *regs, unsigned long addr)
 	pr_emerg("unexpected fault for address: 0x%08lx, last fault for address: 0x%08lx\n",
 		 addr, my_reason->addr);
 	print_pte(addr);
-	print_symbol(KERN_EMERG "faulting IP is at %s\n", regs->ip);
-	print_symbol(KERN_EMERG "last faulting IP was at %s\n", my_reason->ip);
+	pr_emerg("faulting IP is at %pSR\n", (void *)regs->ip);
+	pr_emerg("last faulting IP was at %pSR\n", (void *)my_reason->ip);
 #ifdef __i386__
 	pr_emerg("eax: %08lx   ebx: %08lx   ecx: %08lx   edx: %08lx\n",
 		 regs->ax, regs->bx, regs->cx, regs->dx);
diff --git a/arch/x86/um/sysrq_32.c b/arch/x86/um/sysrq_32.c
index c9bee5b..30b4200 100644
--- a/arch/x86/um/sysrq_32.c
+++ b/arch/x86/um/sysrq_32.c
@@ -50,18 +50,15 @@ static inline unsigned long print_context_stack(struct thread_info *tinfo,
 #ifdef CONFIG_FRAME_POINTER
 	while (valid_stack_ptr(tinfo, (void *)ebp)) {
 		addr = *(unsigned long *)(ebp + 4);
-		printk("%08lx:  [<%08lx>]", ebp + 4, addr);
-		print_symbol(" %s", addr);
-		printk("\n");
+		printk("%08lx:  [<%08lx>] %pSR\n", ebp + 4, addr, (void *)addr);
 		ebp = *(unsigned long *)ebp;
 	}
 #else
 	while (valid_stack_ptr(tinfo, stack)) {
 		addr = *stack;
 		if (__kernel_text_address(addr)) {
-			printk("%08lx:  [<%08lx>]", (unsigned long) stack, addr);
-			print_symbol(" %s", addr);
-			printk("\n");
+			printk("%08lx:  [<%08lx>] %pSR\n",
+			       (unsigned long)stack, addr, (void *)addr);
 		}
 		stack++;
 	}
-- 
1.7.8.112.g3fd21

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/




^ permalink raw reply related	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 16/26] x86: Convert print_symbol to %pSR
  2012-12-13 19:05                   ` Borislav Petkov
@ 2012-12-13 21:35                     ` H. Peter Anvin
  0 siblings, 0 replies; 62+ messages in thread
From: H. Peter Anvin @ 2012-12-13 21:35 UTC (permalink / raw)
  To: Borislav Petkov, Joe Perches, Luck, Tony, Jiri Kosina, Jeff Dike,
	Richard Weinberger, Thomas Gleixner, Ingo Molnar, x86,
	linux-edac, linux-kernel, user-mode-linux-devel,
	user-mode-linux-user

On 12/13/2012 11:05 AM, Borislav Petkov wrote:
>
> Ok, I grok it now. So, in most cases, mce.ip comes from pt_regs.ip which
> is unsigned long so we're fine for both 32- and 64-bit. There's only the
> case with precise RIP reporting where we get the rip from an MSR but
> even then, it should be 4 bytes on 32-bit since our addresses there are
> 4 bytes.
>
> So, actually struct mce should've had ->ip defined as an unsigned long
> from the very beginning. But we can't change that now because this
> struct is shared with userspace :(
>

Good thing, then,. otherwise we'd have a compat headache.

	-hpa
-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR
  2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
                   ` (28 preceding siblings ...)
  2012-12-13 19:13 ` [TRIVIAL PATCH V2 16/26] x86: " Joe Perches
@ 2013-01-08  5:52 ` Joe Perches
  2013-01-08 20:33   ` Jiri Kosina
  29 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2013-01-08  5:52 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-kernel

On Wed, 2012-12-12 at 10:18 -0800, Joe Perches wrote:
> Remove the somewhat awkward uses of print_symbol and convert all the
> existing uses to a new vsprintf pointer type of %pSR.

Jiri?  Are you going to do anything with this?


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR
  2013-01-08  5:52 ` [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
@ 2013-01-08 20:33   ` Jiri Kosina
  2013-02-20  6:00     ` Joe Perches
  0 siblings, 1 reply; 62+ messages in thread
From: Jiri Kosina @ 2013-01-08 20:33 UTC (permalink / raw)
  To: Joe Perches; +Cc: linux-kernel

On Mon, 7 Jan 2013, Joe Perches wrote:

> > Remove the somewhat awkward uses of print_symbol and convert all the
> > existing uses to a new vsprintf pointer type of %pSR.
> 
> Jiri?  Are you going to do anything with this?

Joe,

yup, it's still in my TODO queue for trivial.git.

Thanks,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 11/26] powerpc: Convert print_symbol to %pSR
  2012-12-13 11:58   ` Arnd Bergmann
@ 2013-01-10  5:48     ` Benjamin Herrenschmidt
  2013-01-10 17:00       ` Joe Perches
  0 siblings, 1 reply; 62+ messages in thread
From: Benjamin Herrenschmidt @ 2013-01-10  5:48 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Joe Perches, Jiri Kosina, Paul Mackerras, linuxppc-dev,
	cbe-oss-dev, linux-kernel

On Thu, 2012-12-13 at 11:58 +0000, Arnd Bergmann wrote:
> On Wednesday 12 December 2012, Joe Perches wrote:
> > Use the new vsprintf extension to avoid any possible
> > message interleaving.
> > 
> > Convert the #ifdef DEBUG block to a single pr_debug.
> > 
> > Signed-off-by: Joe Perches <joe@perches.com>
> 
> nice cleanup!

 ... which also breaks the build :-(

> Acked-by: Arnd Bergmann <arnd@arndb.de>

I'll fix it up locally.

Ben.

> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 11/26] powerpc: Convert print_symbol to %pSR
  2013-01-10  5:48     ` Benjamin Herrenschmidt
@ 2013-01-10 17:00       ` Joe Perches
  0 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2013-01-10 17:00 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: Arnd Bergmann, Jiri Kosina, Paul Mackerras, linuxppc-dev,
	cbe-oss-dev, linux-kernel

On Thu, 2013-01-10 at 16:48 +1100, Benjamin Herrenschmidt wrote:
> On Thu, 2012-12-13 at 11:58 +0000, Arnd Bergmann wrote:
> > On Wednesday 12 December 2012, Joe Perches wrote:
> > > Use the new vsprintf extension to avoid any possible
> > > message interleaving.
> > > 
> > > Convert the #ifdef DEBUG block to a single pr_debug.
> > > 
> > > Signed-off-by: Joe Perches <joe@perches.com>
> > 
> > nice cleanup!
> 
>  ... which also breaks the build :-(
> 
> > Acked-by: Arnd Bergmann <arnd@arndb.de>
> 
> I'll fix it up locally.

OK, I didn't compile it.
How does it break the build?


^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR
  2013-01-08 20:33   ` Jiri Kosina
@ 2013-02-20  6:00     ` Joe Perches
  0 siblings, 0 replies; 62+ messages in thread
From: Joe Perches @ 2013-02-20  6:00 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-kernel

On Tue, 2013-01-08 at 21:33 +0100, Jiri Kosina wrote:
> On Mon, 7 Jan 2013, Joe Perches wrote:
> 
> > > Remove the somewhat awkward uses of print_symbol and convert all the
> > > existing uses to a new vsprintf pointer type of %pSR.
> > 
> > Jiri?  Are you going to do anything with this?
> 
> Joe,
> 
> yup, it's still in my TODO queue for trivial.git.

Jiri?

Is this still in your TODO queue?
If so, for what version?



^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 08/26] m32r: Convert print_symbol to %pSR
  2012-12-13  3:06   ` Hirokazu Takata
@ 2013-04-29 13:21     ` Jiri Kosina
  2013-04-30 12:56       ` Joe Perches
  0 siblings, 1 reply; 62+ messages in thread
From: Jiri Kosina @ 2013-04-29 13:21 UTC (permalink / raw)
  To: Hirokazu Takata; +Cc: Joe Perches, linux-m32r, linux-m32r-ja, linux-kernel

On Thu, 13 Dec 2012, Hirokazu Takata wrote:

> Acked-by: Hirokazu Takata <takata@linux-m32r.org>

Applied.

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 19/26] gfs2: Convert print_symbol to %pSR
  2012-12-13 10:57   ` Steven Whitehouse
@ 2013-04-29 13:23     ` Jiri Kosina
  0 siblings, 0 replies; 62+ messages in thread
From: Jiri Kosina @ 2013-04-29 13:23 UTC (permalink / raw)
  To: Steven Whitehouse; +Cc: Joe Perches, cluster-devel, linux-kernel

On Thu, 13 Dec 2012, Steven Whitehouse wrote:

> Acked-by: Steven Whitehouse <swhiteho@redhat.com>

Applied.

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 23/26] mm: Convert print_symbol to %pSR
  2012-12-12 20:08   ` Christoph Lameter
@ 2013-04-29 13:24     ` Jiri Kosina
  0 siblings, 0 replies; 62+ messages in thread
From: Jiri Kosina @ 2013-04-29 13:24 UTC (permalink / raw)
  To: Christoph Lameter
  Cc: Joe Perches, Pekka Enberg, Matt Mackall, linux-mm, linux-kernel

On Wed, 12 Dec 2012, Christoph Lameter wrote:

> > Use the new vsprintf extension to avoid any possible
> > message interleaving.
> 
> Acked-by: Christoph Lameter <cl@linux.com>

Doesn't seem to be in linux-next as of today, I am taking this one.

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 08/26] m32r: Convert print_symbol to %pSR
  2013-04-29 13:21     ` Jiri Kosina
@ 2013-04-30 12:56       ` Joe Perches
  2013-04-30 21:11         ` Jiri Kosina
  0 siblings, 1 reply; 62+ messages in thread
From: Joe Perches @ 2013-04-30 12:56 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Hirokazu Takata, linux-m32r, linux-m32r-ja, linux-kernel

On Mon, 2013-04-29 at 15:21 +0200, Jiri Kosina wrote:
> On Thu, 13 Dec 2012, Hirokazu Takata wrote:
> > Acked-by: Hirokazu Takata <takata@linux-m32r.org>

Hi Jiri.

It's really not useful to cherry-pick a few patches
from this series.

You must first apply patch 1 of 26 before applying any
of the others as a new vsprintf pointer extension %pSR
is added by that patch.




^ permalink raw reply	[flat|nested] 62+ messages in thread

* Re: [TRIVIAL PATCH 08/26] m32r: Convert print_symbol to %pSR
  2013-04-30 12:56       ` Joe Perches
@ 2013-04-30 21:11         ` Jiri Kosina
  0 siblings, 0 replies; 62+ messages in thread
From: Jiri Kosina @ 2013-04-30 21:11 UTC (permalink / raw)
  To: Joe Perches; +Cc: Hirokazu Takata, linux-m32r, linux-m32r-ja, linux-kernel

On Tue, 30 Apr 2013, Joe Perches wrote:

> > On Thu, 13 Dec 2012, Hirokazu Takata wrote:
> > > Acked-by: Hirokazu Takata <takata@linux-m32r.org>
> 
> Hi Jiri.
> 
> It's really not useful to cherry-pick a few patches
> from this series.
> 
> You must first apply patch 1 of 26 before applying any
> of the others as a new vsprintf pointer extension %pSR
> is added by that patch.

Omitting the actual addition of %pSR is of course completely my fault, 
caused by my incorrect merge into for-linus branch, thanks for noticing 
that. It's now fixed in Linus' tree.

OTOH, cherry-picking the patches that have been Acked by maintainers is 
what I usually do in the first round. For 3.11, I'd like to ask you to 
send me a remaining conversions as one condensed patch, and I'll decide 
whether I'll be taking those or not despite the missing Ack from 
maintainers.

Thanks,

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 62+ messages in thread

end of thread, other threads:[~2013-04-30 21:11 UTC | newest]

Thread overview: 62+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-12 18:18 [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
2012-12-12 18:18 ` [TRIVIAL PATCH 01/26] vsprintf: Add extension %pSR - print_symbol replacement Joe Perches
2012-12-12 18:18 ` [TRIVIAL PATCH 02/26] alpha: Convert print_symbol to %pSR Joe Perches
2012-12-12 18:18 ` [TRIVIAL PATCH 03/26] arm: " Joe Perches
2012-12-12 18:18 ` [TRIVIAL PATCH 04/26] arm64: " Joe Perches
2012-12-13 18:03   ` Catalin Marinas
2012-12-12 18:18 ` [TRIVIAL PATCH 05/26] avr32: " Joe Perches
2012-12-12 18:18 ` [TRIVIAL PATCH 06/26] c6x: " Joe Perches
2012-12-12 18:18 ` [TRIVIAL PATCH 07/26] ia64: " Joe Perches
2012-12-12 18:18 ` [TRIVIAL PATCH 08/26] m32r: " Joe Perches
2012-12-13  3:06   ` Hirokazu Takata
2013-04-29 13:21     ` Jiri Kosina
2013-04-30 12:56       ` Joe Perches
2013-04-30 21:11         ` Jiri Kosina
2012-12-12 18:18 ` [TRIVIAL PATCH 09/26] mn10300: " Joe Perches
2012-12-12 18:18 ` [TRIVIAL PATCH 10/26] openrisc: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 11/26] powerpc: " Joe Perches
2012-12-13 11:58   ` Arnd Bergmann
2013-01-10  5:48     ` Benjamin Herrenschmidt
2013-01-10 17:00       ` Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 12/26] s390: " Joe Perches
2012-12-13  1:22   ` Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 13/26] sh: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 14/26] um: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 15/26] unicore32: " Joe Perches
     [not found]   ` <001d01cdd8cd$371dfd60$a559f820$@mprc.pku.edu.cn>
2012-12-13  1:21     ` 答复: " Joe Perches
2012-12-13  2:00       ` Chen Gang
2012-12-13  2:26     ` Joe Perches
     [not found]   ` <19e6ea369e4455fc447c48f72bd433921bd0a703.1355335228.git.joe@perches.c om>
2012-12-13  5:05     ` guanxuetao
2012-12-12 18:19 ` [TRIVIAL PATCH 16/26] x86: " Joe Perches
2012-12-12 21:09   ` Borislav Petkov
2012-12-12 21:30     ` Joe Perches
2012-12-12 21:48       ` Borislav Petkov
2012-12-12 21:49       ` Luck, Tony
2012-12-12 22:23         ` Joe Perches
2012-12-12 22:45           ` Borislav Petkov
2012-12-13 18:23             ` Joe Perches
2012-12-13 18:37               ` Borislav Petkov
2012-12-13 18:42                 ` H. Peter Anvin
2012-12-13 19:05                   ` Borislav Petkov
2012-12-13 21:35                     ` H. Peter Anvin
2012-12-13 18:57                 ` Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 17/26] xtensa: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 18/26] drivers: base: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 19/26] gfs2: " Joe Perches
2012-12-13 10:57   ` Steven Whitehouse
2013-04-29 13:23     ` Jiri Kosina
2012-12-12 18:19 ` [TRIVIAL PATCH 20/26] sysfs: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 21/26] irq: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 22/26] smp_processor_id: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 23/26] mm: " Joe Perches
2012-12-12 20:08   ` Christoph Lameter
2013-04-29 13:24     ` Jiri Kosina
2012-12-12 18:19 ` [TRIVIAL PATCH 24/26] xtensa: " Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 25/26] x86: head_64.S: Use vsprintf extension %pSR not print_symbol Joe Perches
2012-12-12 18:19 ` [TRIVIAL PATCH 26/26] kallsyms: Remove print_symbol Joe Perches
2012-12-12 19:30 ` [TRIVIAL PATCH V2 24/26] Documentation: Convert print_symbol to %pSR Joe Perches
2012-12-13  1:43 ` [TRIVIAL PATCH V2 12/26] s390: " Joe Perches
2012-12-13 19:13 ` [TRIVIAL PATCH V2 16/26] x86: " Joe Perches
2013-01-08  5:52 ` [TRIVIAL PATCH 00/26] treewide: Add and use vsprintf extension %pSR Joe Perches
2013-01-08 20:33   ` Jiri Kosina
2013-02-20  6:00     ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).