Revision 31d3c9b8

b/simpletrace.c
14 14
#include <time.h>
15 15
#include <signal.h>
16 16
#include <pthread.h>
17
#include "qerror.h"
18 17
#include "qemu-timer.h"
19 18
#include "trace.h"
20 19

  
......
331 330
    flush_trace_file(true);
332 331
}
333 332

  
334
void st_init(const char *file)
333
bool st_init(const char *file)
335 334
{
336 335
    pthread_t thread;
337 336
    pthread_attr_t attr;
......
347 346
    pthread_sigmask(SIG_SETMASK, &oldset, NULL);
348 347

  
349 348
    if (ret != 0) {
350
        error_report("warning: unable to create trace file thread\n");
351
        return;
349
        return false;
352 350
    }
353 351

  
354 352
    atexit(st_flush_trace_buffer);
355 353
    st_set_trace_file(file);
354
    return true;
356 355
}
b/simpletrace.h
37 37
void st_set_trace_file_enabled(bool enable);
38 38
bool st_set_trace_file(const char *file);
39 39
void st_flush_trace_buffer(void);
40
void st_init(const char *file);
40
bool st_init(const char *file);
41 41
#else
42
static inline void st_init(const char *file)
42
static inline bool st_init(const char *file)
43 43
{
44
    /* Do nothing */
44
    return true;
45 45
}
46 46
#endif /* !CONFIG_SIMPLE_TRACE */
47 47

  
b/vl.c
2766 2766
    }
2767 2767
    loc_set_none();
2768 2768

  
2769
    st_init(trace_file);
2769
    if (!st_init(trace_file)) {
2770
        fprintf(stderr, "warning: unable to initialize simple trace backend\n");
2771
    }
2770 2772

  
2771 2773
    /* If no data_dir is specified then try to find it relative to the
2772 2774
       executable path.  */

Also available in: Unified diff