Rev 8687 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8687 | Rev 8744 | ||
---|---|---|---|
Line 16... | Line 16... | ||
16 | char *s = malloc(STDIO_MAX_MEM); |
16 | char *s = malloc(STDIO_MAX_MEM); |
17 | if(!s){ |
17 | if(!s){ |
18 | errno = ENOMEM; |
18 | errno = ENOMEM; |
19 | return errno; |
19 | return errno; |
20 | } |
20 | } |
21 | __con_init(); |
21 | con_init(); |
22 | len = vsnprintf(s, STDIO_MAX_MEM, format, arg); |
22 | len = vsnprintf(s, STDIO_MAX_MEM, format, arg); |
23 | __con_write_string(s, len); |
23 | con_write_string(s, len); |
24 | free(s); |
24 | free(s); |
25 | return(len); |
25 | return(len); |
26 | } |
26 | } |