From 8192aca05a9cbf918e12e8f8cc1c6cd2dd0c9dc1 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 2 Jan 2014 16:40:47 +0100 Subject: Removed debug printfs --- host/matelight/main.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'host/matelight/main.c') diff --git a/host/matelight/main.c b/host/matelight/main.c index 7a636fc..1fc6cd4 100644 --- a/host/matelight/main.c +++ b/host/matelight/main.c @@ -17,12 +17,6 @@ int console_render(char *s, glyph_t **glyph_table, unsigned int glyph_table_size unsigned int gbufheight = 0; char *p = s; - printf("Input: "); - for(int i=0; i<=len; i++){ - printf("%02x ", (unsigned char)s[i]); - } - printf(" (%s)\n", s); - wchar_t c; mbstate_t ps = {0}; memset(&ps, 0, sizeof(mbstate_t)); @@ -32,7 +26,6 @@ int console_render(char *s, glyph_t **glyph_table, unsigned int glyph_table_size } for(;;){ size_t inc = mbrtowc(&c, p, MB_CUR_MAX, &ps); // MB_CUR_MAX is safe since p is \0-terminated - printf("Converted %lx (%x) remaining length %d to %lc rv %d\n", p, (unsigned char)*p, (s+len+1)-p, c, inc); if(inc == -1 || inc == -2){ fprintf(stderr, "Error rendering string: No valid UTF-8 input.\n"); goto error; -- cgit