summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-04-23 18:58:16 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-10-25 22:04:54 +0200
commitb99fe7e4662d91c8727271f19e83ad42f406e1e1 (patch)
tree6482811adc732f175f9bf9180cbe0da8ef33d359 /content/fetch.c
parente94504c0d57e0cc3f6508c489762d7ffea3242be (diff)
downloadnetsurf-b99fe7e4662d91c8727271f19e83ad42f406e1e1.tar.gz
netsurf-b99fe7e4662d91c8727271f19e83ad42f406e1e1.tar.bz2
Get logging working.
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c6
1 files changed, 5 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;
}