diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-03-13 20:14:30 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-03-15 18:03:26 +0000 |
commit | 31d3c9b8c15d7b42f508d5fc2adc4abb7c732b70 (patch) | |
tree | 06e4b51f2b49992dac1196d1eb3e6cb62df0f026 /vl.c | |
parent | cc015e9a5dde2f03f123357fa060acbdfcd570a4 (diff) | |
download | qemu-31d3c9b8c15d7b42f508d5fc2adc4abb7c732b70.zip qemu-31d3c9b8c15d7b42f508d5fc2adc4abb7c732b70.tar.gz qemu-31d3c9b8c15d7b42f508d5fc2adc4abb7c732b70.tar.bz2 |
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>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2766,7 +2766,9 @@ int main(int argc, char **argv, char **envp) } loc_set_none(); - st_init(trace_file); + if (!st_init(trace_file)) { + fprintf(stderr, "warning: unable to initialize simple trace backend\n"); + } /* If no data_dir is specified then try to find it relative to the executable path. */ |