From 04ea4b52a07b49655b39df8f26496b66049a7f81 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 4 Aug 2014 14:48:32 +0100 Subject: Add debug. --- utils/nsurl.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/utils/nsurl.c b/utils/nsurl.c index 591907fad..d3279470d 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -501,6 +501,22 @@ static void nsurl__get_string_markers(const char * const url_s, marker.fragment = marker.end; } +#ifdef NSURL_DEBUG + LOG(("marker.start: %i", marker.start)); + LOG(("marker.scheme_end: %i", marker.scheme_end)); + LOG(("marker.authority: %i", marker.authority)); + + LOG(("marker.colon_first: %i", marker.colon_first)); + LOG(("marker.at: %i", marker.at)); + LOG(("marker.colon_last: %i", marker.colon_last)); + + LOG(("marker.path: %i", marker.path)); + LOG(("marker.query: %i", marker.query)); + LOG(("marker.fragment: %i", marker.fragment)); + + LOG(("marker.end: %i", marker.end)); +#endif + /* Got all the URL components pegged out now */ *markers = marker; } -- cgit v1.2.3