Rev 2 | Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 3 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | */ |
18 | */ |
19 | 19 | ||
20 | /* Includes */ |
20 | /* Includes */ |
21 | 21 | ||
22 | 22 | ||
23 | #include "../Inc/libSmallPrintf/small_printf.h" |
23 | #include "libSmallPrintf/small_printf.h" |
24 | 24 | ||
25 | #include <stdarg.h> |
25 | #include <stdarg.h> |
26 | #include <stdio.h> |
26 | #include <stdio.h> |
27 | #include <string.h> |
27 | #include <string.h> |
28 | 28 | ||
Line 200... | Line 200... | ||
200 | out: |
200 | out: |
201 | /* deal with LF -> CRLF mapping */ |
201 | /* deal with LF -> CRLF mapping */ |
202 | if(*format == '\n') |
202 | if(*format == '\n') |
203 | { |
203 | { |
204 | printchar(out,'\r'); |
204 | printchar(out,'\r'); |
- | 205 | ++pc; // extra char |
|
205 | } |
206 | } |
206 | printchar (out, *format); |
207 | printchar (out, *format); |
207 | ++pc; |
208 | ++pc; |
208 | } |
209 | } |
209 | } |
210 | } |