lib,ratp: avoid too verbose info messages
PATCH 1/1 lib,ratp: avoid too verbose info messages
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
...
--- lib/ratp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/ratp.c +1 -1
@@ -1717,7 +1717,7 @@ void ratp_close(struct ratp *ratp)free (ri); ratp->internal =NULL ; -pr_info ("Closed\n" ); +pr_debug ("Closed\n" ); }/**
Signature · 7 lines
2.14.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 12 lines · 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
...
Quoted 4 lines
Signed-off-by Aleksander Morgado <[email protected]>--- lib/ratp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
Quoted 18 lines
lib/ratp.c +1
-1@@ -1717,7 +1717,7 @@ void ratp_close(struct ratp *ratp)free (ri); ratp->internal =NULL ; -pr_info ("Closed\n" ); +pr_debug ("Closed\n" ); }/** Signature · 1 line
2.14.1
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox