From patchwork Wed Dec 10 15:43:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 4141 Received: (qmail 8839 invoked by alias); 10 Dec 2014 15:47:45 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 8829 invoked by uid 89); 10 Dec 2014 15:47:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Wed, 10 Dec 2014 15:43:44 +0000 From: Joseph Myers To: Subject: Fix tst-ftell-active-handler.c warning Message-ID: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 A recent change to libio/tst-ftell-active-handler.c (postdating my last check for warnings on x86) introduced a format warning from a long int variable used with a %zu format. This patch fixes it by using %ld for the format to match the variable. Tested for x86. 2014-12-10 Joseph Myers * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld format for long int variable. diff --git a/libio/tst-ftell-active-handler.c b/libio/tst-ftell-active-handler.c index 6151554..7be75bc 100644 --- a/libio/tst-ftell-active-handler.c +++ b/libio/tst-ftell-active-handler.c @@ -165,7 +165,7 @@ do_ftruncate_test (const char *filename) it. */ if (offset != new_offset) { - printf ("Incorrect offset. Expected %zu, but got %ld\n", + printf ("Incorrect offset. Expected %ld, but got %ld\n", offset, new_offset); ret |= 1;