diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-04-23 18:58:16 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-06-10 08:25:29 +0200 |
commit | bf5cb1e98ed9c4fb1c6dc157892fd8ac25dda42f (patch) | |
tree | 5c78ea07faf1c3c26252cb063f02a50d25619727 /content | |
parent | dbe64238302aab07de75d520f9a85fa2856e8ce7 (diff) | |
download | netsurf-bf5cb1e98ed9c4fb1c6dc157892fd8ac25dda42f.tar.gz netsurf-bf5cb1e98ed9c4fb1c6dc157892fd8ac25dda42f.tar.bz2 |
Get logging working.
Diffstat (limited to 'content')
-rw-r--r-- | content/fetch.c | 7 | ||||
-rw-r--r-- | content/handlers/css/css.c | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/content/fetch.c b/content/fetch.c index 666b9e30e..d6e98e1f4 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -70,7 +70,7 @@ /** Verbose fetcher logging */ #ifdef DEBUG_FETCH_VERBOSE -#define FETCH_LOG(x...) debug_board_printf(x); debug_board_printf("\n"); +#define FETCH_LOG(x...) LOG(x) #else #define FETCH_LOG(x...) #endif @@ -300,12 +300,14 @@ nserror fetcher_init(void) return ret; } #endif + #ifdef _TARGET_IS_KOLIBRIOS ret = fetch_httplib_kolibri_register(); if (ret != NSERROR_OK) { return ret; } #endif + ret = fetch_data_register(); if (ret != NSERROR_OK) { return ret; @@ -593,6 +595,7 @@ fetch_start(nsurl *url, /* exported interface documented in content/fetch.h */ void fetch_abort(struct fetch *f) { + debug_board_printf("---- fetch.c : fetch_abort for fetch 0x%x\n", f); assert(f); FETCH_LOG("fetch %p, fetcher %p, url '%s'", f, f->fetcher_handle, nsurl_access(f->url)); @@ -773,7 +776,7 @@ void fetch_remove_from_queues(struct fetch *fetch) /* exported interface documented in content/fetch.h */ void fetch_set_http_code(struct fetch *fetch, long http_code) { - FETCH_LOG("Setting HTTP code to %ld", http_code); + FETCH_LOG("Setting HTTP code to %ld for fetch 0x%x", http_code, fetch); fetch->http_code = http_code; } diff --git a/content/handlers/css/css.c b/content/handlers/css/css.c index 997eb5115..ffff14fd1 100644 --- a/content/handlers/css/css.c +++ b/content/handlers/css/css.c @@ -259,6 +259,8 @@ bool nscss_process_data(struct content *c, const char *data, unsigned int size) content_broadcast(c, CONTENT_MSG_ERROR, msg_data); } + debug_board_printf("Processing css_data of size : %u\n", size); + return (error == CSS_OK || error == CSS_NEEDDATA); } |