mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] lib,ratp: avoid too verbose info messages
@ 2017-09-19 21:36 Aleksander Morgado
  2017-09-20  6:53 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Aleksander Morgado @ 2017-09-19 21:36 UTC (permalink / raw)
  To: s.hauer, barebox; +Cc: Aleksander Morgado

When using a cli-based RATP that opens and closes the RATP channel for
each command sent/received, it gets annoying to get the "Closed"
message printed all the time in console after each RATP channel close
operation. Just demote it to debug level.

E.g.:
    barebox@barebox sandbox:/ ratp: Closed
    ratp: Closed
    ratp: Closed
    ratp: Closed
    ...

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
---
 lib/ratp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ratp.c b/lib/ratp.c
index e7fbf640a..4c5c748b4 100644
--- a/lib/ratp.c
+++ b/lib/ratp.c
@@ -1717,7 +1717,7 @@ void ratp_close(struct ratp *ratp)
 	free(ri);
 	ratp->internal = NULL;
 
-	pr_info("Closed\n");
+	pr_debug("Closed\n");
 }
 
 /**
-- 
2.14.1


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] lib,ratp: avoid too verbose info messages
  2017-09-19 21:36 [PATCH] lib,ratp: avoid too verbose info messages Aleksander Morgado
@ 2017-09-20  6:53 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-09-20  6:53 UTC (permalink / raw)
  To: Aleksander Morgado; +Cc: barebox

On Tue, Sep 19, 2017 at 02:36:41PM -0700, Aleksander Morgado wrote:
> When using a cli-based RATP that opens and closes the RATP channel for
> each command sent/received, it gets annoying to get the "Closed"
> message printed all the time in console after each RATP channel close
> operation. Just demote it to debug level.
> 
> E.g.:
>     barebox@barebox sandbox:/ ratp: Closed
>     ratp: Closed
>     ratp: Closed
>     ratp: Closed
>     ...
> 
> Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
> ---
>  lib/ratp.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/lib/ratp.c b/lib/ratp.c
> index e7fbf640a..4c5c748b4 100644
> --- a/lib/ratp.c
> +++ b/lib/ratp.c
> @@ -1717,7 +1717,7 @@ void ratp_close(struct ratp *ratp)
>  	free(ri);
>  	ratp->internal = NULL;
>  
> -	pr_info("Closed\n");
> +	pr_debug("Closed\n");
>  }
>  
>  /**
> -- 
> 2.14.1
> 
> 

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-20  6:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-19 21:36 [PATCH] lib,ratp: avoid too verbose info messages Aleksander Morgado
2017-09-20  6:53 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox