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: 4301 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