From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEePs-00079H-Ek for qemu-devel@nongnu.org; Wed, 28 Aug 2013 08:00:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEePl-0005vr-4a for qemu-devel@nongnu.org; Wed, 28 Aug 2013 08:00:04 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:48288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEePk-0005vn-Qo for qemu-devel@nongnu.org; Wed, 28 Aug 2013 07:59:57 -0400 Received: by mail-la0-f48.google.com with SMTP id er20so4602629lab.21 for ; Wed, 28 Aug 2013 04:59:40 -0700 (PDT) From: Antony Pavlov Date: Wed, 28 Aug 2013 15:57:21 +0400 Message-Id: <1377691041-7190-1-git-send-email-antonynpavlov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] pflash_cfi02.c: fix debug macro List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Antony Pavlov , Stefan Hajnoczi If PFLASH_DEBUG is enabled then we have some build errors: hw/block/pflash_cfi02.c: In function ‘pflash_timer’: hw/block/pflash_cfi02.c:128:5: error: expected ‘)’ before string constant hw/block/pflash_cfi02.c:128:5: error: too few arguments to function ‘fprintf’ This patch fixes the problem. Signed-off-by: Antony Pavlov --- hw/block/pflash_cfi02.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c index 99445b0..8d4b828 100644 --- a/hw/block/pflash_cfi02.c +++ b/hw/block/pflash_cfi02.c @@ -47,7 +47,7 @@ #ifdef PFLASH_DEBUG #define DPRINTF(fmt, ...) \ do { \ - fprintf(stderr "PFLASH: " fmt , ## __VA_ARGS__); \ + fprintf(stderr, "PFLASH: " fmt , ## __VA_ARGS__); \ } while (0) #else #define DPRINTF(fmt, ...) do { } while (0) -- 1.8.4.rc3