From 80d68a9784a7b3936280b98e88c61fad2c8cec99 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Sat, 13 May 2017 21:08:42 +0200 Subject: Clean up debug board logging and other crap --- content/fetchers/httplib_kolibri.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'content/fetchers/httplib_kolibri.c') diff --git a/content/fetchers/httplib_kolibri.c b/content/fetchers/httplib_kolibri.c index 3361b0460..d3f268983 100644 --- a/content/fetchers/httplib_kolibri.c +++ b/content/fetchers/httplib_kolibri.c @@ -38,18 +38,14 @@ void add_to_poll(struct httpfetcher *newfetcher) { if(head == NULL) { head = newfetcher; - LOG("-=- head was NULL. head is now : 0x%x", head); assert(head->next == NULL); } else { while(t->next != NULL) { - LOG("-=- Passing through httpfetcher : 0x%x", t); t = t->next; } - LOG("-=- Adding after httpfetcher : 0x%x", t); t->next = newfetcher; } - LOG("-=- done: newfetcher 0x%x, newfetcher->handle 0x%x", newfetcher, newfetcher->handle); } void remove_from_poll(struct http_msg *donehttp) { @@ -58,21 +54,13 @@ void remove_from_poll(struct http_msg *donehttp) { /* STOP; */ while(t) { - LOG("------- t = 0x%x, t->handle = 0x%x", t, t->handle); - /* STOP; */ - if (t->handle == donehttp) { - LOG(" -- t->handle == donehttp"); if(t == head) { - LOG("--- t == head"); p = t->next; head = p; - LOG("-=- Setting head to 0x%x", p); break; } else { - LOG("--- t != head"); - LOG("-=- p is 0x%x", p); p->next = t->next; break; } @@ -88,7 +76,6 @@ bool init_fetcher(lwc_string *scheme) { assert(lwc_string_isequal(scheme, corestring_lwc_http, &supported_scheme) == lwc_error_ok); LOG("Initializing http library!"); - debug_board_printf("fetcher_init: Initializing http library!\n"); if(kolibri_http_init() == 0) LOG("[INFO] Loaded http.obj library successfully.\n"); else { @@ -258,7 +245,6 @@ void poll_fetch(lwc_string *scheme) { continue; } else { - LOG("---- finding header 'location' for fetch 0x%x", t->owner); fetch_msg msg; int lenloc = 0; char *tmp = http_find_header_field_asm(t->handle, "location"); @@ -273,7 +259,6 @@ void poll_fetch(lwc_string *scheme) { LOG("---- [3xx] : Redirect to %s", msg.data.redirect); fetch_send_callback(&msg, t->owner); t->headercbdone = true; - LOG("---- call Remove t->handle = 0x%x", t->handle); remove_from_poll(t->handle); /* t = t->next; */ t = head; @@ -300,7 +285,7 @@ void poll_fetch(lwc_string *scheme) { } else if(ret == -1) { /* If data was received send it to netsurf core with FETCH_DATA */ - /* LOG("Doing a data callback; so far : %u vs %u!", t->datalen_cb_done, t->handle->content_received); */ + LOG("Doing a data callback; so far : %u vs %u!", t->datalen_cb_done, t->handle->content_received); if(t->handle->content_received > t->datalen_cb_done) { fetch_msg msg; @@ -338,7 +323,7 @@ void poll_fetch(lwc_string *scheme) { continue; } - LOG("Main loop: t going from 0x%x to 0x%x", t->owner, t->next != NULL ? t->next->owner : "0"); + LOG("Main loop: t going from 0x%x to 0x%x", t->owner, t->next != NULL ? t->next->owner : NULL); t = t->next; } -- cgit v1.2.3