Skip to contentSkip to conversation

lib,ratp: avoid too verbose info messages

PATCH Applied Aleksander Morgado 2 participants 2 messages Sep 19, 2017 – Sep 20, 2017 Library code

lore
Share & tools
lore
#0 lore raw

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
index e7fbf640a..4c5c748b4 100644
@@ -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
Applied
#1 lore raw
Quoted 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
---
 lib/ratp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

Quoted 18 lines
lib/ratp.c +1 -1
index e7fbf640a..4c5c748b4 100644
@@ -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