From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=51746 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWEXF-0006sX-VC for qemu-devel@nongnu.org; Tue, 06 Jul 2010 16:14:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWEXD-0004DZ-3z for qemu-devel@nongnu.org; Tue, 06 Jul 2010 16:14:29 -0400 Received: from mtagate4.uk.ibm.com ([194.196.100.164]:46542) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWEXC-0004D4-QT for qemu-devel@nongnu.org; Tue, 06 Jul 2010 16:14:27 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate4.uk.ibm.com (8.13.1/8.13.1) with ESMTP id o66KEOmP023893 for ; Tue, 6 Jul 2010 20:14:24 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o66KEJsL1499136 for ; Tue, 6 Jul 2010 21:14:24 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o66KEITH004673 for ; Tue, 6 Jul 2010 21:14:19 +0100 From: Stefan Hajnoczi Date: Tue, 6 Jul 2010 21:14:00 +0100 Message-Id: <1278447241-2709-2-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1278447241-2709-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1278447241-2709-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 2/3] trace: Conform to QEMU coding style List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: sripathik@in.ibm.com, Stefan Hajnoczi , Prerna Saxena Signed-off-by: Stefan Hajnoczi --- This applies to the tracing branch at: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tracing-dev simpletrace.c | 21 ++++++++++++++------- tracetool | 3 ++- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/simpletrace.c b/simpletrace.c index 5c327af..ace009f 100644 --- a/simpletrace.c +++ b/simpletrace.c @@ -24,7 +24,8 @@ static FILE *trace_fp; static void trace(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, - unsigned long x4, unsigned long x5) { + unsigned long x4, unsigned long x5) +{ struct timespec ts; /* TODO make qemu-timer.h work in qemu-io and friends */ clock_gettime(CLOCK_MONOTONIC, &ts); @@ -55,27 +56,33 @@ static void trace(TraceEventID event, unsigned long x1, } } -void trace0(TraceEventID event) { +void trace0(TraceEventID event) +{ trace(event, 0, 0, 0, 0, 0); } -void trace1(TraceEventID event, unsigned long x1) { +void trace1(TraceEventID event, unsigned long x1) +{ trace(event, x1, 0, 0, 0, 0); } -void trace2(TraceEventID event, unsigned long x1, unsigned long x2) { +void trace2(TraceEventID event, unsigned long x1, unsigned long x2) +{ trace(event, x1, x2, 0, 0, 0); } -void trace3(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3) { +void trace3(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3) +{ trace(event, x1, x2, x3, 0, 0); } -void trace4(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4) { +void trace4(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4) +{ trace(event, x1, x2, x3, x4, 0); } -void trace5(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5) { +void trace5(TraceEventID event, unsigned long x1, unsigned long x2, unsigned long x3, unsigned long x4, unsigned long x5) +{ trace(event, x1, x2, x3, x4, x5); } diff --git a/tracetool b/tracetool index 9ce8e74..43757e3 100755 --- a/tracetool +++ b/tracetool @@ -169,7 +169,8 @@ linetoh_simple() fi cat <