diff mbox series

Cosmetic: move "Mongoose web server.." to log

Message ID 20201111213813.829510-1-sbabic@denx.de
State Accepted
Headers show
Series Cosmetic: move "Mongoose web server.." to log | expand

Commit Message

Stefano Babic Nov. 11, 2020, 9:38 p.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 mongoose/mongoose_interface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c
index 0c5ff23..e7a2743 100644
--- a/mongoose/mongoose_interface.c
+++ b/mongoose/mongoose_interface.c
@@ -593,7 +593,7 @@  int start_mongoose(const char *cfgfname, int argc, char *argv[])
 
 	nc = mg_bind_opt(&mgr, s_http_port, ev_handler, bind_opts);
 	if (nc == NULL) {
-		fprintf(stderr, "Failed to start Mongoose: %s\n", *bind_opts.error_string);
+		ERROR("Failed to start Mongoose: %s", *bind_opts.error_string);
 		exit(EXIT_FAILURE);
 	}
 
@@ -612,7 +612,7 @@  int start_mongoose(const char *cfgfname, int argc, char *argv[])
 	mg_start_thread(broadcast_message_thread, &mgr);
 	mg_start_thread(broadcast_progress_thread, &mgr);
 
-	printf("Mongoose web server version %s with pid %d started on port(s) %s with web root [%s]\n",
+	INFO("Mongoose web server version %s with pid %d started on port(s) %s with web root [%s]",
 		MG_VERSION, getpid(), s_http_port,
 		s_http_server_opts.document_root);