From 4aa1c867f5a48537c8edf1c071d64b4f21e59b47 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 7 Apr 2007 21:33:54 +0000 Subject: Silence noisy logging svn path=/trunk/netsurf/; revision=3244 --- desktop/history_core.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/desktop/history_core.c b/desktop/history_core.c index 0e7049dbe..1a1f19c61 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -225,12 +225,12 @@ void history_add(struct history *history, struct content *content, return; } - LOG(("%s => %s : %s", content->url, url, content->title)); - LOG(("%s", frag_id)); +// LOG(("%s => %s : %s", content->url, url, content->title)); +// LOG(("%s", frag_id)); title = strdup(content->title ? content->title : url); - LOG(("after strdup")); +// LOG(("after strdup")); if (!entry || !url || !title) { warn_user("NoMemory", 0); @@ -407,20 +407,13 @@ void history_go(struct browser_window *bw, struct history *history, char *url; struct history_entry *current; - LOG(("%p %p %p", bw, history, entry)); - LOG(("%s %s %s", - entry->page.url, entry->page.title, entry->page.frag_id)); +// LOG(("%p %p %p", bw, history, entry)); +// LOG(("%s %s %s", +// entry->page.url, entry->page.title, entry->page.frag_id)); if (entry->page.frag_id) { - size_t a, b; - - a = strlen(entry->page.url); - LOG(("after a")); - b = strlen(entry->page.frag_id); - LOG(("after b")); - url = malloc(a + b + 5); - LOG(("after malloc")); - + url = malloc(strlen(entry->page.url) + + strlen(entry->page.frag_id) + 5); if (!url) { warn_user("NoMemory", 0); return; -- cgit v1.2.3