From patchwork Mon Nov 5 18:04:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Pringlemeir X-Patchwork-Id: 197266 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 269692C00AA for ; Tue, 6 Nov 2012 05:25:21 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVRKG-0005lz-9q; Mon, 05 Nov 2012 18:23:08 +0000 Received: from blu0-omc1-s13.blu0.hotmail.com ([65.55.116.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVRKD-0005lZ-94 for linux-mtd@lists.infradead.org; Mon, 05 Nov 2012 18:23:06 +0000 Received: from BLU0-SMTP30 ([65.55.116.8]) by blu0-omc1-s13.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 5 Nov 2012 10:23:04 -0800 X-Originating-IP: [64.229.138.54] X-EIP: [DxDwdpLe3jM8HzBlG4yADOgo0/ovgYIf] X-Originating-Email: [bpringle@sympatico.ca] Message-ID: Received: from DeadDuck ([64.229.138.54]) by BLU0-SMTP30.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 5 Nov 2012 10:23:03 -0800 From: Bill Pringlemeir To: linux-mtd@lists.infradead.org Subject: [PATCH 2/2] ubi-tests/integ: Add PRIxxx_t defines. Date: Mon, 5 Nov 2012 13:04:33 -0500 X-OriginalArrivalTime: 05 Nov 2012 18:23:03.0980 (UTC) FILETIME=[985A26C0:01CDBB82] MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121105_132305_400285_C26AB372 X-CRM114-Status: UNSURE ( 7.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [65.55.116.24 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Message-ID: <87ehk7nc1l.fsf@sympatico.ca> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --text follows this line-- I doubt this is the 'correct' solution, but it does show the issue. common.h is shadowed by local copy of the same name. Also include inttype.h in case the c library does not. Signed-off-by: Bill Pringlemeir --- tests/ubi-tests/integ.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/ubi-tests/integ.c b/tests/ubi-tests/integ.c index e48f533..9b1347f 100644 --- a/tests/ubi-tests/integ.c +++ b/tests/ubi-tests/integ.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -16,6 +17,17 @@ #include "libubi.h" #include "common.h" +/* Duplicate: of common.h in top 'include'. */ +/* Define a print format specifier for off_t */ +#ifdef __USE_FILE_OFFSET64 +#define PRIxoff_t PRIx64 +#define PRIdoff_t PRId64 +#else +#define PRIxoff_t "l"PRIx32 +#define PRIdoff_t "l"PRId32 +#endif + + struct erase_block_info; struct volume_info; struct ubi_device_info;