linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Geoff Levand <geoff@infradead.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Geoff Levand <geoff@infradead.org>,
	cbe-oss-dev@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org
Subject: [PATCH 1/4] powerpc/ps3: Add macro PS3_VERBOSE_RESULT
Date: Thu, 14 Feb 2013 03:03:16 +0000	[thread overview]
Message-ID: <cf8f609bb785e9eebd9f9a3a22888440194afe12.1360810584.git.geoff@infradead.org> (raw)
In-Reply-To: <cover.1360810584.git.geoff@infradead.org>

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(-)

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)";
-- 
1.7.9.5

  reply	other threads:[~2013-02-14  3:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14  3:06 [PATCH 0/4] PS3 patches for 3.9 Geoff Levand
2013-02-14  3:03 ` Geoff Levand [this message]
2013-02-14  3:03 ` [PATCH 4/4] powerpc: Move boot_paca into early_setup Geoff Levand
2013-02-14  3:03 ` [PATCH 3/4] powerpc/ps3: Refresh ps3_defconfig Geoff Levand
2013-02-14  3:03 ` [PATCH 2/4] powerpc/ps3: Increase verbosity of htab errors Geoff Levand
2013-03-19  1:11 ` [PATCH for 3.9] powerpc/ps3: Update ps3_defconfig Geoff Levand
2013-03-30  0:38   ` Geoff Levand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf8f609bb785e9eebd9f9a3a22888440194afe12.1360810584.git.geoff@infradead.org \
    --to=geoff@infradead.org \
    --cc=benh@kernel.crashing.org \
    --cc=cbe-oss-dev@lists.ozlabs.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).