diff options
author | jaseg <jaseg@jaseg.net> | 2014-01-02 16:40:47 +0100 |
---|---|---|
committer | jaseg <jaseg@jaseg.net> | 2014-01-02 16:40:47 +0100 |
commit | 8192aca05a9cbf918e12e8f8cc1c6cd2dd0c9dc1 (patch) | |
tree | 85b06b3491feecf7d707550f066c1493a18186e0 /host | |
parent | 3e1895b71c26267b87a0ccfa1d5248f5a207c47f (diff) | |
download | matelight-8192aca05a9cbf918e12e8f8cc1c6cd2dd0c9dc1.tar.gz matelight-8192aca05a9cbf918e12e8f8cc1c6cd2dd0c9dc1.tar.bz2 matelight-8192aca05a9cbf918e12e8f8cc1c6cd2dd0c9dc1.zip |
Removed debug printfs
Diffstat (limited to 'host')
-rw-r--r-- | host/matelight/main.c | 7 |
1 files changed, 0 insertions, 7 deletions
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; |