mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/1] console: use debug_ll before the console is available
Date: Wed, 17 Oct 2012 00:01:33 +0200	[thread overview]
Message-ID: <20121016220133.GL27665@pengutronix.de> (raw)
In-Reply-To: <1350381953-17388-1-git-send-email-plagnioj@jcrosoft.com>

On Tue, Oct 16, 2012 at 12:05:53PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> This will allow to have the same feature as earlyprintk in the kernel
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Applied, thanks

Sascha

> ---
>  common/console.c        |    2 ++
>  common/console_simple.c |    5 ++++-
>  2 files changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/common/console.c b/common/console.c
> index b4b3a99..2e8c973 100644
> --- a/common/console.c
> +++ b/common/console.c
> @@ -32,6 +32,7 @@
>  #include <poller.h>
>  #include <linux/list.h>
>  #include <linux/stringify.h>
> +#include <debug_ll.h>
>  
>  LIST_HEAD(console_list);
>  EXPORT_SYMBOL(console_list);
> @@ -280,6 +281,7 @@ void console_putc(unsigned int ch, char c)
>  
>  	case CONSOLE_INITIALIZED_BUFFER:
>  		kfifo_putc(console_output_fifo, c);
> +		PUTC_LL(c);
>  		return;
>  
>  	case CONSOLE_INIT_FULL:
> diff --git a/common/console_simple.c b/common/console_simple.c
> index 7ad88d9..a4d4315 100644
> --- a/common/console_simple.c
> +++ b/common/console_simple.c
> @@ -2,6 +2,7 @@
>  #include <common.h>
>  #include <fs.h>
>  #include <errno.h>
> +#include <debug_ll.h>
>  
>  LIST_HEAD(console_list);
>  EXPORT_SYMBOL(console_list);
> @@ -85,8 +86,10 @@ EXPORT_SYMBOL(console_puts);
>  
>  void console_putc(unsigned int ch, char c)
>  {
> -	if (!console)
> +	if (!console) {
> +		PUTC_LL(c);
>  		return;
> +	}
>  
>  	console->putc(console, c);
>  	if (c == '\n')
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2012-10-16 22:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-16 10:05 Jean-Christophe PLAGNIOL-VILLARD
2012-10-16 22:01 ` Sascha Hauer [this message]

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=20121016220133.GL27665@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=plagnioj@jcrosoft.com \
    /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