From 78aa34e5d761c2597f24ebba89c69ac6fda2f3a8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 5 Nov 2019 00:07:06 +0000 Subject: remove user warnings from hotlist load and curl poll --- content/fetchers/curl.c | 4 ++-- desktop/hotlist.c | 17 ++++++++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index 2644c68d4..a1d7ee190 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -1325,9 +1325,9 @@ static void fetch_curl_poll(lwc_string *scheme_ignored) do { codem = curl_multi_perform(fetch_curl_multi, &running); if (codem != CURLM_OK && codem != CURLM_CALL_MULTI_PERFORM) { - NSLOG(netsurf, WARNING, "curl_multi_perform: %i %s", + NSLOG(netsurf, WARNING, + "curl_multi_perform: %i %s", codem, curl_multi_strerror(codem)); - guit->misc->warning("MiscError", curl_multi_strerror(codem)); return; } } while (codem == CURLM_CALL_MULTI_PERFORM); diff --git a/desktop/hotlist.c b/desktop/hotlist.c index 4bdd7c8cb..4daaaed71 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -890,7 +890,9 @@ static nserror hotlist_load(const char *path, bool *loaded) corestring_lwc_html); if (html == NULL) { dom_node_unref(document); - guit->misc->warning("TreeLoadError", "( not found)"); + NSLOG(netsurf, WARNING, + "%s ( not found)", + messages_get("TreeLoadError")); return NSERROR_OK; } @@ -899,7 +901,9 @@ static nserror hotlist_load(const char *path, bool *loaded) if (body == NULL) { dom_node_unref(html); dom_node_unref(document); - guit->misc->warning("TreeLoadError", "(... not found)"); + NSLOG(netsurf, WARNING, + "%s (... not found)", + messages_get("TreeLoadError")); return NSERROR_OK; } @@ -909,8 +913,9 @@ static nserror hotlist_load(const char *path, bool *loaded) dom_node_unref(body); dom_node_unref(html); dom_node_unref(document); - guit->misc->warning("TreeLoadError", - "(......