All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Cc: tim@xen.org, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH 2/4] dt-uart: Clarify log messages at init time.
Date: Wed, 07 Jan 2015 16:17:05 +0000	[thread overview]
Message-ID: <54AD5C01.8050305@linaro.org> (raw)
In-Reply-To: <1420644701-26776-2-git-send-email-ian.campbell@citrix.com>

Hi Ian,

On 07/01/15 15:31, Ian Campbell wrote:
> - Don't log at all if console=dtuart (the default) was not present, in
>   that case the user has asked for something else, no need for every
>   other driver to tell them this.
> - Use "dtuart" in all other messages, rather than just "console" or
>   "uart".
> - Be more explicit if we are exiting because dtuart= wasn't given.
> - Log the options which we've parsed.
> 
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

Reviewed-by: Julien Grall <julien.grall@linaro.org>

Regards,

> ---
>  xen/drivers/char/dt-uart.c |   11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/xen/drivers/char/dt-uart.c b/xen/drivers/char/dt-uart.c
> index 45a87a6..04dbb97 100644
> --- a/xen/drivers/char/dt-uart.c
> +++ b/xen/drivers/char/dt-uart.c
> @@ -41,9 +41,12 @@ void __init dt_uart_init(void)
>      const char *devpath = opt_dtuart;
>      char *options;
>  
> -    if ( !console_has("dtuart") || !strcmp(opt_dtuart, "") )
> +    if ( !console_has("dtuart") )
> +        return; /* Not for us */
> +
> +    if ( !strcmp(opt_dtuart, "") )
>      {
> -        printk("No console\n");
> +        printk("No dtuart path configured\n");
>          return;
>      }
>  
> @@ -53,7 +56,7 @@ void __init dt_uart_init(void)
>      else
>          options = "";
>  
> -    printk("Looking for UART console %s\n", devpath);
> +    printk("Looking for dtuart at \"%s\", options \"%s\"\n", devpath, options);
>      if ( *devpath == '/' )
>          dev = dt_find_node_by_path(devpath);
>      else
> @@ -68,7 +71,7 @@ void __init dt_uart_init(void)
>      ret = device_init(dev, DEVICE_SERIAL, options);
>  
>      if ( ret )
> -        printk("Unable to initialize serial: %d\n", ret);
> +        printk("Unable to initialize dtuart: %d\n", ret);
>  }
>  
>  /*
> 


-- 
Julien Grall

  reply	other threads:[~2015-01-07 16:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-07 15:31 [PATCH 0/4] dt-uart: cleanups, bugfixes and /chosen/stdout-path support Ian Campbell
2015-01-07 15:31 ` [PATCH 1/4] dt-uart: add an emacs magic block Ian Campbell
2015-01-07 16:15   ` Julien Grall
2015-01-07 15:31 ` [PATCH 2/4] dt-uart: Clarify log messages at init time Ian Campbell
2015-01-07 16:17   ` Julien Grall [this message]
2015-01-07 15:31 ` [PATCH 3/4] dt-uart: use ':' as default separator between path and options Ian Campbell
2015-01-07 16:31   ` Julien Grall
2015-01-07 16:36     ` Ian Campbell
2015-01-07 15:31 ` [PATCH 4/4] dt-uart: support /chosen/stdout-path property Ian Campbell
2015-01-07 16:42   ` Julien Grall
2015-01-07 16:47     ` Ian Campbell
2015-01-07 17:04       ` Julien Grall

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=54AD5C01.8050305@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.