diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-05-13 21:08:42 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-10-25 22:04:54 +0200 |
commit | 80d68a9784a7b3936280b98e88c61fad2c8cec99 (patch) | |
tree | 9c2c3b73b51911eb8c41222e74b3aa921f6e6e71 /frontends/kolibrios/fb | |
parent | c6ea17bccd08175eaa6bfda3ec438aa5e6fbbeda (diff) | |
download | netsurf-80d68a9784a7b3936280b98e88c61fad2c8cec99.tar.gz netsurf-80d68a9784a7b3936280b98e88c61fad2c8cec99.tar.bz2 |
Clean up debug board logging and other crap
Diffstat (limited to 'frontends/kolibrios/fb')
-rw-r--r-- | frontends/kolibrios/fb/font_freetype.c | 2 | ||||
-rw-r--r-- | frontends/kolibrios/fb/gui.c | 20 |
2 files changed, 9 insertions, 13 deletions
diff --git a/frontends/kolibrios/fb/font_freetype.c b/frontends/kolibrios/fb/font_freetype.c index 68a54a384..b12bc9903 100644 --- a/frontends/kolibrios/fb/font_freetype.c +++ b/frontends/kolibrios/fb/font_freetype.c @@ -119,7 +119,7 @@ fb_new_face(const char *option, const char *resname, const char *fontname) fb_faceid_t *newf; FT_Error error; FT_Face aface; - char buf[PATH_MAX]; + char buf[PATH_MAX]; newf = calloc(1, sizeof(fb_faceid_t)); diff --git a/frontends/kolibrios/fb/gui.c b/frontends/kolibrios/fb/gui.c index 90388acda..6d21b737e 100644 --- a/frontends/kolibrios/fb/gui.c +++ b/frontends/kolibrios/fb/gui.c @@ -60,11 +60,6 @@ #define NSFB_TOOLBAR_DEFAULT_LAYOUT "blfsrutc" -/* #undef LOG */ -/* #define LOG(format, args...) \ */ -/* debug_board_printf(format, ##args); \ */ -/* debug_board_printf("\n"); \ */ - fbtk_widget_t *fbtk; static bool fb_complete = false; @@ -493,6 +488,7 @@ process_cmdline(int argc, char** argv) } /* Remove me! */ + /* feurl = "file:///usbhd0/1/bin/res/text.html"; */ feurl = "http://board.kolibrios.org"; /* NS on KolibriOS does not support option parsing (yet) */ @@ -2140,16 +2136,16 @@ int main(int argc, char** argv) /* Initialize heap so that we can do memory allocations */ unsigned int heapsize = heap_init(); - debug_board_printf("[SYSTEM] Initialized heap (Size = %u bytes)\n", heapsize); + LOG("[SYSTEM] Initialized heap (Size = %u bytes)\n", heapsize); assert(heapsize != 0); /* fix args */ -#define MKARGV(i,opt) argv[i] = (char *) malloc(strlen(opt) + 1); strcpy(argv[i], opt); -#define ARGC 3 -MKARGV(1, "-V"); -MKARGV(2, "/tmp0/1/netsurf.log"); -MKARGV(ARGC, "\0"); - argc = ARGC; +/* #define MKARGV(i,opt) argv[i] = (char *) malloc(strlen(opt) + 1); strcpy(argv[i], opt); */ +/* #define ARGC 3 */ +/* MKARGV(1, "-V"); */ +/* MKARGV(2, "/tmp0/1/netsurf.log"); */ +/* MKARGV(ARGC, "\0"); */ +/* argc = ARGC; */ /* args fixed */ /* The only restriction is that the kolibrios-netsurf binary and the res/ directory should be in the same directory. */ |