Patchwork [1/4] powerpc/ps3: Add macro PS3_VERBOSE_RESULT

login
register
mail settings
Submitter Geoff Levand
Date Feb. 14, 2013, 3:03 a.m.
Message ID <cf8f609bb785e9eebd9f9a3a22888440194afe12.1360810584.git.geoff@infradead.org>
Download mbox | patch
Permalink /patch/220338/
State Accepted, archived
Commit 4a564c4d1fc7f077c6135afe5c2890a262d71264
Headers show

Comments

Geoff Levand - Feb. 14, 2013, 3:03 a.m.
To allow more control of the verbosity of ps3_result() add a check
for the preprocessor macro PS3_VERBOSE_RESULT that builds a verbose
verion of the ps3_result() routine.

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 arch/powerpc/include/asm/ps3.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/powerpc/include/asm/ps3.h b/arch/powerpc/include/asm/ps3.h
index 0e15db4..678a7c1 100644
--- a/arch/powerpc/include/asm/ps3.h
+++ b/arch/powerpc/include/asm/ps3.h
@@ -245,7 +245,7 @@  enum lv1_result {
 
 static inline const char* ps3_result(int result)
 {
-#if defined(DEBUG)
+#if defined(DEBUG) || defined(PS3_VERBOSE_RESULT)
 	switch (result) {
 	case LV1_SUCCESS:
 		return "LV1_SUCCESS (0)";