2 * (C) Copyright 2007-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
10 #include <directory.h>
19 int con_vprintf(struct virt_cons
*con
, const char *fmt
, va_list args
)
21 struct virt_sys
*sys
= container_of(con
, struct virt_sys
, console
);
28 memset(&dt
, 0, sizeof(dt
));
29 ret
= get_parsed_tod(&dt
);
30 off
= snprintf(buf
, 128, "%02d:%02d:%02d ", dt
.th
, dt
.tm
,
34 ret
= vsnprintf(buf
+off
, 128-off
, fmt
, args
);
37 /* internal guests direct all console traffic to sclp */
40 /* normal guests direct it to their console device */
41 ascii2ebcdic((u8
*) buf
, off
+ret
);
42 //con_write(con, (u8 *) buf, off+ret);
49 int con_printf(struct virt_cons
*con
, const char *fmt
, ...)
55 r
= con_vprintf(con
, fmt
, args
);