console: qom-ify QemuConsole
[qemu/ar7.git] / trace / default.c
blob6e07a479d6575b6af6384bbeb10128ad19fbf770
1 /*
2 * Default implementation for backend initialization from commandline.
4 * Copyright (C) 2011-2012 LluĂ­s Vilanova <vilanova@ac.upc.edu>
6 * This work is licensed under the terms of the GNU GPL, version 2. See
7 * the COPYING file in the top-level directory.
8 */
10 #include "trace/control.h"
13 void trace_print_events(FILE *stream, fprintf_function stream_printf)
15 fprintf(stderr, "warning: "
16 "cannot print the trace events with the current backend\n");
17 stream_printf(stream, "error: "
18 "operation not supported with the current backend\n");
21 void trace_event_set_state_dynamic_backend(TraceEvent *ev, bool state)
23 fprintf(stderr, "warning: "
24 "cannot set the state of a trace event with the current backend\n");
27 bool trace_backend_init(const char *events, const char *file)
29 if (events) {
30 fprintf(stderr, "error: -trace events=...: "
31 "option not supported by the selected tracing backend\n");
32 return false;
34 if (file) {
35 fprintf(stderr, "error: -trace file=...: "
36 "option not supported by the selected tracing backend\n");
37 return false;
39 return true;