From 00747ddd1fefe378b82f9c6d598d16e4dba0a154 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 10 Jul 2012 16:21:07 +0200 Subject: [PATCH] Use PLOG instead of PDBG in http_srv test The messages are informative, not debug messages. --- libports/src/test/lwip/http_srv/main.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libports/src/test/lwip/http_srv/main.cc b/libports/src/test/lwip/http_srv/main.cc index 3474930fc..5fd36b443 100644 --- a/libports/src/test/lwip/http_srv/main.cc +++ b/libports/src/test/lwip/http_srv/main.cc @@ -50,7 +50,7 @@ void http_server_serve(int conn) { /* Read the data from the port, blocking if nothing yet there. We assume the request (the part we care about) is in one packet */ buflen = lwip_recv(conn, buf, 1024, 0); - PDBG("Packet received!"); + PLOG("Packet received!"); /* Ignore all receive errors */ if (buflen > 0) { @@ -64,7 +64,7 @@ void http_server_serve(int conn) { buf[3] == ' ' && buf[4] == '/' ) { - PDBG("Will send response"); + PLOG("Will send response"); /* Send http header */ lwip_send(conn, http_html_hdr, Genode::strlen(http_html_hdr), 0); @@ -88,13 +88,13 @@ int main() return -1; } - PDBG("Create new socket ..."); + PLOG("Create new socket ..."); if((s = lwip_socket(AF_INET, SOCK_STREAM, 0)) < 0) { PERR("No socket available!"); return -1; } - PDBG("Now, I will bind ..."); + PLOG("Now, I will bind ..."); struct sockaddr_in in_addr; in_addr.sin_family = AF_INET; in_addr.sin_port = htons(80); @@ -104,13 +104,13 @@ int main() return -1; } - PDBG("Now, I will listen ..."); + PLOG("Now, I will listen ..."); if(lwip_listen(s, 5)) { PERR("listen failed!"); return -1; } - PDBG("Start the server loop ..."); + PLOG("Start the server loop ..."); while(true) { struct sockaddr addr; socklen_t len = sizeof(addr);