mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
hv:clear up the usage of printf data struct
The printf related functions have been called by other various functions, e.g. get_ptdev_info(), get_ioapic_info, etc. The patch is used to clear up the usage. Tracked-On: #861 Signed-off-by: Junjun Shan <junjun.shan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -28,7 +28,7 @@ void console_init(void);
|
||||
* and no character was written.
|
||||
*/
|
||||
|
||||
int console_write(const char *s, size_t len);
|
||||
size_t console_write(const char *s, size_t len);
|
||||
|
||||
/** Writes a single character to the console.
|
||||
*
|
||||
@@ -62,13 +62,13 @@ static inline void console_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int console_write(__unused const char *str,
|
||||
static inline size_t console_write(__unused const char *str,
|
||||
__unused size_t len)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline void console_putc(__unused const char *ch) { }
|
||||
static inline int console_getc(void) { return 0; }
|
||||
static inline char console_getc(void) { return '\0'; }
|
||||
static inline void console_setup_timer(void) {}
|
||||
static inline void suspend_console(void) {}
|
||||
static inline void resume_console(void) {}
|
||||
|
||||
Reference in New Issue
Block a user