From patchwork Wed Dec 17 14:24:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 422267 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 424F11400DE for ; Thu, 18 Dec 2014 01:25:04 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=GKYJm0uWHLrUnkLJBe2TOjm+jnyka 0dST85EgRq7oo4L25D6oAdg9uMqexlJZxfcq7DtzVzZ2J76nshet6ppoRrqEUVnv rN/3CqUyqnwOA0oq/2/hZkBRx1y+tccIF/mNiQB8dpAZq0QOmRuuF8oMUv85iSwR U/H0J2NpvQF/R8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=XUtuejBWwoX9rcV4UvcTAjU8lM4=; b=vgP k5Ke2379IKwFm4mWWuFD709N4gblCRogHNi5tL9c+WkY0TSH1M1l4wf06iQSah27 sblzo1yzhklZz4vXJY27kuNTs9A/uR4Y7KsA2ogJC44pY/idmsqHhys98k04pxYM ByefeHn0xnaO0jCPxKNC2cRsBrcVheGsQT6fGWLI= Received: (qmail 26407 invoked by alias); 17 Dec 2014 14:24:58 -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 26384 invoked by uid 89); 17 Dec 2014 14:24:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx2.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: Fix printf format error X-Yow: With YOU, I can be MYSELF.. We don't NEED Dan Rather.. Date: Wed, 17 Dec 2014 15:24:50 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 This was failing on s390. Installed as obvious. Andreas. * nscd/mem.c (gc): Add size_t cast to match printf format. --- nscd/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nscd/mem.c b/nscd/mem.c index b4090fb..b04c7fa 100644 --- a/nscd/mem.c +++ b/nscd/mem.c @@ -423,8 +423,8 @@ gc (struct database_dyn *db) if (__glibc_unlikely (debug_level >= 3)) dbg_log (_("freed %zu bytes in %s cache"), - db->head->first_free - - ((char *) moves->to + moves->size - db->data), + (size_t) (db->head->first_free + - ((char *) moves->to + moves->size - db->data)), dbnames[db - dbs]); /* The byte past the end of the last copied block is the next