File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 32
32
#include <termios.h>
33
33
#include <poll.h>
34
34
#include <errno.h>
35
+ #include <stdarg.h>
36
+ #include <stdio.h>
35
37
36
38
#include "sim_internal.h"
37
39
@@ -242,3 +244,16 @@ bool host_uart_checkout(int fd)
242
244
pfd .events = POLLOUT ;
243
245
return poll (& pfd , 1 , 0 ) == 1 ;
244
246
}
247
+
248
+ /****************************************************************************
249
+ * Name: host_printf
250
+ ****************************************************************************/
251
+
252
+ void host_printf (const char * fmt , ...)
253
+ {
254
+ va_list ap ;
255
+
256
+ va_start (ap , fmt );
257
+ vprintf (fmt , ap );
258
+ va_end (ap );
259
+ }
Original file line number Diff line number Diff line change @@ -287,6 +287,7 @@ bool host_uart_checkin(int fd);
287
287
bool host_uart_checkout (int fd );
288
288
int host_uart_setcflag (int fd , unsigned int cflag );
289
289
int host_uart_getcflag (int fd , unsigned int * cflag );
290
+ void host_printf (const char * fmt , ...);
290
291
291
292
/* sim_deviceimage.c ********************************************************/
292
293
You can’t perform that action at this time.
0 commit comments