From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56801 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P66VI-0006wc-7F for qemu-devel@nongnu.org; Wed, 13 Oct 2010 14:56:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P66TJ-0006DM-6i for qemu-devel@nongnu.org; Wed, 13 Oct 2010 14:54:42 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:59990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P66TI-0006CS-Re for qemu-devel@nongnu.org; Wed, 13 Oct 2010 14:54:41 -0400 From: Stefan Weil Date: Wed, 13 Oct 2010 20:54:27 +0200 Message-Id: <1286996067-25440-2-git-send-email-weil@mail.berlios.de> In-Reply-To: <1286996067-25440-1-git-send-email-weil@mail.berlios.de> References: <1286996067-25440-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH 2/2] Replace remaining gcc format attributes by macro GCC_FMT_ATTR (format checking) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: Blue Swirl Replace the remaining format attribute printf by macro GCC_FMT_ATTR which uses gnu_printf (if supported). v2 * Removal of dyngen specific code is now done in a separate patch. * Handle attribute in new ui/spice-display.c, too. Cc: Blue Swirl Signed-off-by: Stefan Weil --- cpu-all.h | 2 +- ui/spice-display.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 67a3266..11edddc 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -773,7 +773,7 @@ void cpu_dump_statistics (CPUState *env, FILE *f, int flags); void QEMU_NORETURN cpu_abort(CPUState *env, const char *fmt, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); + GCC_FMT_ATTR(2, 3); extern CPUState *first_cpu; extern CPUState *cpu_single_env; diff --git a/ui/spice-display.c b/ui/spice-display.c index 6702dfd..7b4f5c1 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -29,8 +29,7 @@ static int debug = 0; -static void __attribute__((format(printf,2,3))) -dprint(int level, const char *fmt, ...) +static void GCC_FMT_ATTR(2, 3) dprint(int level, const char *fmt, ...) { va_list args; -- 1.7.1