From 346baf80d8a0785d48a2faeae0af42258e22150d Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Wed, 25 Oct 2017 22:25:41 +0200 Subject: Use libnslog. Get rid of LOG() macro calls and replace with calls to NSLOG. --- frontends/kolibrios/gui.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'frontends/kolibrios/gui.c') diff --git a/frontends/kolibrios/gui.c b/frontends/kolibrios/gui.c index a60bce560..159053d16 100644 --- a/frontends/kolibrios/gui.c +++ b/frontends/kolibrios/gui.c @@ -467,7 +467,7 @@ process_cmdline(int argc, char** argv) /* {0, 0, 0, 0 } */ /* }; /\* no long options *\/ */ - LOG("argc %d, argv %p", argc, argv); + NSLOG(netsurf, INFO, "argc %d, argv %p", argc, argv); fename = "kolibri"; febpp = 32; @@ -597,7 +597,7 @@ static void framebuffer_run(void) nsfb_event_t event; int timeout; /* timeout in miliseconds */ - LOG("framebuffer_run() executing!"); + NSLOG(netsurf, DEBUG, "framebuffer_run() executing!"); while (fb_complete != true) { /* run the scheduler and discover how long to wait for @@ -2181,7 +2181,7 @@ main(int argc, char** argv) if (ret != NSERROR_OK) die("Options failed to initialise"); - LOG("Resources are at : %s", respath); + NSLOG(netsurf, INFO, "Resources are at : %s", respath); options = filepath_find(respaths, "Choices"); nsoption_read(options, nsoptions); @@ -2231,8 +2231,8 @@ main(int argc, char** argv) urldb_load_cookies(nsoption_charp(cookie_file)); /* create an initial browser window */ - LOG("calling browser_window_create with Size(hxw)=%dx%d\n", feheight, fewidth); - LOG("calling browser_window_create with URL=%s\n", feurl); + NSLOG(netsurf, DEBUG, "calling browser_window_create with Size(hxw)=%dx%d\n", feheight, fewidth); + NSLOG(netsurf, DEBUG, "calling browser_window_create with URL=%s\n", feurl); ret = nsurl_create(feurl, &url); if (ret == NSERROR_OK) { @@ -2254,7 +2254,7 @@ main(int argc, char** argv) netsurf_exit(); if (fb_font_finalise() == false) - LOG("Font finalisation failed."); + NSLOG(netsurf, CRITICAL, "Font finalisation failed."); /* finalise options */ nsoption_finalise(nsoptions, nsoptions_default); -- cgit v1.2.3