Received: from eggs.gnu.org ([208.118.235.92]:48164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlYx-0007qq-GV for qemu-devel@nongnu.org; Tue, 08 May 2012 10:38:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRlYr-0001Vj-PX for qemu-devel@nongnu.org; Tue, 08 May 2012 10:38:51 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:34201 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRlYr-0001Sq-Dy for qemu-devel@nongnu.org; Tue, 08 May 2012 10:38:45 -0400 Received: from gw.ac.upc.edu (gw.ac.upc.es [147.83.30.3]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id q48Ech2l029865 for ; Tue, 8 May 2012 16:38:43 +0200 Received: from localhost (unknown [84.88.51.85]) by gw.ac.upc.edu (Postfix) with ESMTP id 4D97F6B006A for ; Tue, 8 May 2012 16:38:43 +0200 (CEST) From: =?utf-8?b?TGx1w61z?= Vilanova Date: Tue, 8 May 2012 16:38:43 +0200 Message-Id: <20120508143842.18271.56595.stgit@fimbulvetr.bsc.es> In-Reply-To: <20120508143813.18271.15731.stgit@fimbulvetr.bsc.es> References: <20120508143813.18271.15731.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v4 5/7] trace: [default] Use new event control interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Llu=C3=ADs Vilanova --- trace/default.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trace/default.c b/trace/default.c index c9b27a2..3c41990 100644 --- a/trace/default.c +++ b/trace/default.c @@ -1,7 +1,7 @@ /* * Default implementation for backend initialization from commandline. * - * Copyright (C) 2011 Llu=C3=ADs Vilanova + * Copyright (C) 2011, 2012 Llu=C3=ADs Vilanova * * This work is licensed under the terms of the GNU GPL, version 2. See * the COPYING file in the top-level directory. @@ -18,11 +18,11 @@ void trace_print_events(FILE *stream, fprintf_functio= n stream_printf) "operation not supported with the current backend\n"); } =20 -bool trace_event_set_state(const char *name, bool state) +void trace_event_set_state_dynamic(TraceEvent *ev, bool state) { + assert(ev !=3D NULL); fprintf(stderr, "warning: " "cannot set the state of a trace event with the current back= end\n"); - return false; } =20 bool trace_backend_init(const char *events, const char *file)