diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-04-23 18:58:16 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-10-25 22:04:54 +0200 |
commit | b99fe7e4662d91c8727271f19e83ad42f406e1e1 (patch) | |
tree | 6482811adc732f175f9bf9180cbe0da8ef33d359 /content | |
parent | e94504c0d57e0cc3f6508c489762d7ffea3242be (diff) | |
download | netsurf-b99fe7e4662d91c8727271f19e83ad42f406e1e1.tar.gz netsurf-b99fe7e4662d91c8727271f19e83ad42f406e1e1.tar.bz2 |
Get logging working.
Diffstat (limited to 'content')
-rw-r--r-- | content/fetch.c | 6 | ||||
-rw-r--r-- | content/handlers/css/css.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/content/fetch.c b/content/fetch.c index 598ac8dd7..872cf0ff0 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 @@ -307,12 +307,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; @@ -603,6 +605,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); NSLOG(fetch, DEBUG, "fetch %p, fetcher %p, url '%s'", f, f->fetcher_handle, @@ -789,6 +792,7 @@ void fetch_remove_from_queues(struct fetch *fetch) void fetch_set_http_code(struct fetch *fetch, long http_code) { NSLOG(fetch, DEBUG, "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 93efd6a1b..b6053a6f5 100644 --- a/content/handlers/css/css.c +++ b/content/handlers/css/css.c @@ -255,6 +255,8 @@ bool nscss_process_data(struct content *c, const char *data, unsigned int size) content_broadcast_errorcode(c, NSERROR_CSS); } + debug_board_printf("Processing css_data of size : %u\n", size); + return (error == CSS_OK || error == CSS_NEEDDATA); } |