mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
simpletrace: Move st_init() error reporting
User emulator builds do not have error_report() so it should not be used by simpletrace.c. In fact, error reporting inside simpletrace.c is inappropriate and should be done by the caller instead. This patch moves st_init() error reporting out to its caller, vl.c:main(). Reported-by: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
cc015e9a5d
commit
31d3c9b8c1
3 changed files with 9 additions and 8 deletions
|
@ -37,11 +37,11 @@ void st_print_trace_file_status(FILE *stream, fprintf_function stream_printf);
|
|||
void st_set_trace_file_enabled(bool enable);
|
||||
bool st_set_trace_file(const char *file);
|
||||
void st_flush_trace_buffer(void);
|
||||
void st_init(const char *file);
|
||||
bool st_init(const char *file);
|
||||
#else
|
||||
static inline void st_init(const char *file)
|
||||
static inline bool st_init(const char *file)
|
||||
{
|
||||
/* Do nothing */
|
||||
return true;
|
||||
}
|
||||
#endif /* !CONFIG_SIMPLE_TRACE */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue