summaryrefslogtreecommitdiff
path: root/utils/nsurl/private.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-08-09 16:11:18 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2018-08-09 16:19:42 +0100
commitfa546661ad7365507f8dde5d75fb27fae63f27a2 (patch)
tree0e075a47174f3492e1fae6fb0ac32cfcb1db3463 /utils/nsurl/private.h
parentadd6dcc0158526bde3cb0785083c0761153fad57 (diff)
downloadnetsurf-fa546661ad7365507f8dde5d75fb27fae63f27a2.tar.gz
netsurf-fa546661ad7365507f8dde5d75fb27fae63f27a2.tar.bz2
nsurl: Move debug logging over to nslog.
Diffstat (limited to 'utils/nsurl/private.h')
-rw-r--r--utils/nsurl/private.h44
1 files changed, 16 insertions, 28 deletions
diff --git a/utils/nsurl/private.h b/utils/nsurl/private.h
index 8032be0c2..4366ff68c 100644
--- a/utils/nsurl/private.h
+++ b/utils/nsurl/private.h
@@ -25,10 +25,6 @@
#include "utils/utils.h"
-/* Define to enable NSURL debugging */
-#undef NSURL_DEBUG
-
-
/** A type for URL schemes */
enum nsurl_scheme_type {
NSURL_SCHEME_OTHER,
@@ -188,44 +184,36 @@ static inline void nsurl__components_destroy(struct nsurl_components *c)
static inline void nsurl__dump(const nsurl *url)
{
if (url->components.scheme)
- NSLOG(netsurf, INFO,netsurf, INFO,
- " Scheme: %s",
- lwc_string_data(url->components.scheme));
+ NSLOG(netsurf, DEEPDEBUG, " Scheme: %s",
+ lwc_string_data(url->components.scheme));
if (url->components.username)
- NSLOG(netsurf, INFO,
- "Username: %s",
- lwc_string_data(url->components.username));
+ NSLOG(netsurf, DEEPDEBUG, "Username: %s",
+ lwc_string_data(url->components.username));
if (url->components.password)
- NSLOG(netsurf, INFO,
- "Password: %s",
- lwc_string_data(url->components.password));
+ NSLOG(netsurf, DEEPDEBUG, "Password: %s",
+ lwc_string_data(url->components.password));
if (url->components.host)
- NSLOG(netsurf, INFO,
- " Host: %s",
- lwc_string_data(url->components.host));
+ NSLOG(netsurf, DEEPDEBUG, " Host: %s",
+ lwc_string_data(url->components.host));
if (url->components.port)
- NSLOG(netsurf, INFO,
- " Port: %s",
- lwc_string_data(url->components.port));
+ NSLOG(netsurf, DEEPDEBUG, " Port: %s",
+ lwc_string_data(url->components.port));
if (url->components.path)
- NSLOG(netsurf, INFO,
- " Path: %s",
- lwc_string_data(url->components.path));
+ NSLOG(netsurf, DEEPDEBUG, " Path: %s",
+ lwc_string_data(url->components.path));
if (url->components.query)
- NSLOG(netsurf, INFO,
- " Query: %s",
- lwc_string_data(url->components.query));
+ NSLOG(netsurf, DEEPDEBUG, " Query: %s",
+ lwc_string_data(url->components.query));
if (url->components.fragment)
- NSLOG(netsurf, INFO,
- "Fragment: %s",
- lwc_string_data(url->components.fragment));
+ NSLOG(netsurf, DEEPDEBUG, "Fragment: %s",
+ lwc_string_data(url->components.fragment));
}
#endif