summaryrefslogtreecommitdiffstats
path: root/src/include/kernel
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-08-22 17:33:44 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-08-24 12:53:03 -0500
commit5d30abd488109fafecdfb3119449aefa5dd685b2 (patch)
tree8ef9d0d49b15507b8d1f3d82a52ce27d8af242d7 /src/include/kernel
parent0977c6da14b8fc1623043daa429041863498aeae (diff)
downloadtalos-hostboot-5d30abd488109fafecdfb3119449aefa5dd685b2.tar.gz
talos-hostboot-5d30abd488109fafecdfb3119449aefa5dd685b2.zip
Add environment var to remove debug messages.
- Add printkd function. - Create HOSTBOOT_DEBUG env var for printk. - Update trace interfaces to utilize HOSTBOOT_DEBUG. - Fix compile errors due to unused variables. Change-Id: Ib18c3ecd51ca333e0118949bf35476e9c5aa46a7 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/273 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/kernel')
-rw-r--r--src/include/kernel/console.H10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/kernel/console.H b/src/include/kernel/console.H
index 2d2cb08fc..51a729960 100644
--- a/src/include/kernel/console.H
+++ b/src/include/kernel/console.H
@@ -27,13 +27,19 @@
#include <string.h>
#include <builtins.h>
+#ifdef HOSTBOOT_DEBUG
+ #define printkd(format...) printk(## format)
+#else
+ #define printkd(format...)
+#endif
+
void printk(const char*, ...) FORMAT_PRINTF;
class Console
{
public:
int putc(int);
-
+
enum { BUFFER_SIZE = 1024 * 16 };
protected:
@@ -41,7 +47,7 @@ class Console
~Console() {};
private:
- size_t iv_pos;
+ size_t iv_pos;
char * iv_buffer;
};
OpenPOWER on IntegriCloud