diff options
Diffstat (limited to 'firmware/common/sprintf.c')
-rw-r--r-- | firmware/common/sprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/sprintf.c b/firmware/common/sprintf.c index a44ca29560..c700034f49 100644 --- a/firmware/common/sprintf.c +++ b/firmware/common/sprintf.c | |||
@@ -174,6 +174,8 @@ int vsnprintf(char *buf, int size, const char *fmt, va_list ap) | |||
174 | return pr.bytes; | 174 | return pr.bytes; |
175 | } | 175 | } |
176 | 176 | ||
177 | #ifndef SIMULATOR | ||
178 | |||
177 | struct for_fprintf { | 179 | struct for_fprintf { |
178 | int fd; /* where to store it */ | 180 | int fd; /* where to store it */ |
179 | int bytes; /* amount stored */ | 181 | int bytes; /* amount stored */ |
@@ -193,8 +195,6 @@ static int fprfunc(void *pr, unsigned char letter) | |||
193 | } | 195 | } |
194 | 196 | ||
195 | 197 | ||
196 | #ifndef SIMULATOR | ||
197 | |||
198 | int fprintf(int fd, const char *fmt, ...) | 198 | int fprintf(int fd, const char *fmt, ...) |
199 | { | 199 | { |
200 | bool ok; | 200 | bool ok; |