powerpc/ps3: Add macro PS3_VERBOSE_RESULT
authorGeoff Levand <geoff@infradead.org>
Wed, 13 Feb 2013 17:03:16 +0000 (17:03 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 Feb 2013 05:54:39 +0000 (16:54 +1100)
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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/ps3.h

index 0e15db4d703bfc51be4c94cc79ac3f8b394e4f29..678a7c1d9cb8ef32ea4da754fb72ac9f6d7f7f47 100644 (file)
@@ -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)";