diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2013-09-23 14:55:10 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-10-07 10:02:28 -0500 |
commit | b8d7070d329b3a6577ae6c11ae7b1afb27db7a22 (patch) | |
tree | 0e93546356b039af78869b5edc86d8d4d1ff08a9 /src/include/kernel/console.H | |
parent | 4dc8e90ef55cb15b6a36a8d27ae43a6b2261521b (diff) | |
download | talos-hostboot-b8d7070d329b3a6577ae6c11ae7b1afb27db7a22.tar.gz talos-hostboot-b8d7070d329b3a6577ae6c11ae7b1afb27db7a22.zip |
Make sprintf-class functions comply with standard.
Change-Id: I6a04179bb2c339668450bcbcf608ebef477c5bfe
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6399
Tested-by: Jenkins Server
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/kernel/console.H')
-rw-r--r-- | src/include/kernel/console.H | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/src/include/kernel/console.H b/src/include/kernel/console.H index 850fac46c..74ab75408 100644 --- a/src/include/kernel/console.H +++ b/src/include/kernel/console.H @@ -1,25 +1,25 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/include/kernel/console.H $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 2010 - 2011 -// -// p1 -// -// Object Code Only (OCO) source materials -// Licensed Internal Code Source Materials -// IBM HostBoot Licensed Internal Code -// -// The source code for this program is not published or other- -// wise divested of its trade secrets, irrespective of what has -// been deposited with the U.S. Copyright Office. -// -// Origin: 30 -// -// IBM_PROLOG_END +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/kernel/console.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2010,2013 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ #ifndef __KERNEL_CONSOLE_H #define __KERNEL_CONSOLE_H @@ -27,6 +27,8 @@ #include <string.h> #include <builtins.h> +#include <util/sprintf.H> + #ifdef HOSTBOOT_DEBUG #define printkd(format...) printk(format) #else @@ -35,10 +37,11 @@ void printk(const char*, ...) FORMAT_PRINTF; -class Console +class Console : public Util::ConsoleBufferInterface { public: int putc(int); + size_t operator()(int c) { return putc(c); }; enum { BUFFER_SIZE = 1024 * 16 }; |