simpletrace: Move st_init() error reporting
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Sun, 13 Mar 2011 20:14:30 +0000 (20:14 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 15 Mar 2011 18:03:26 +0000 (18:03 +0000)
commitddcbc35e1b2940f9c08ae11da614a28d1230b395
tree06e4b51f2b49992dac1196d1eb3e6cb62df0f026
parente596fed1d90b597a409a0513b87b7ec9720ba4a9
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>
simpletrace.c
simpletrace.h
vl.c