From patchwork Mon Apr 6 17:54:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 458402 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 0E358140276 for ; Tue, 7 Apr 2015 03:56:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=HqdNbcmU; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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:in-reply-to :references; q=dns; s=default; b=sR+G36hj869yJJW6tECCnVwEOnge1GV gS47anw5OFnv97A8JMscKkNpB4ANnXq4EHXtrK2Y9CmPoX09fsKDlwW9O9i4C1VM eDn8zNZVASH1C5d4GrAaygF3wVf5SIIrYWHNUny7JFx5mfyGc3/wxlObT49/oZUS 2SUZijHOAgr8= 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:in-reply-to :references; s=default; bh=LWZVd7SgIJ5j/r2k67ATQDmD4kQ=; b=HqdNb cmU93MGMvZ1WGPs0U03Igkz8HWgVydCzQkZ4Ut3KDOBPVNEkYB/ZoLqGMpIUUshq s/OLWGB0iC7XdmmoeXQbBGhXgIHrtByYC43+EfzyiZweM0JM+ZBhBd2w5cEnUc/x +1JMC8A/n1vyKtrVQgYxF9DIpqyIoU4YSvIezA= Received: (qmail 92011 invoked by alias); 6 Apr 2015 17:55:06 -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 91950 invoked by uid 89); 6 Apr 2015 17:55:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f175.google.com X-Received: by 10.70.47.102 with SMTP id c6mr29726489pdn.24.1428342903567; Mon, 06 Apr 2015 10:55:03 -0700 (PDT) From: Richard Henderson To: libc-alpha@sourceware.org Subject: [COMMITTED 3/3] math/test-fenvinline: Cast fe_exc to unsigned int before printing Date: Mon, 6 Apr 2015 10:54:54 -0700 Message-Id: <1428342894-11889-4-git-send-email-rth@twiddle.net> In-Reply-To: <1428342894-11889-1-git-send-email-rth@twiddle.net> References: <1428342894-11889-1-git-send-email-rth@twiddle.net> On Alpha and IA-64, fexcept_t is unsigned long. But all the values fit within an int, so the cast is ok for printing. All other hosts use unsigned int or unsigned short already. --- ChangeLog | 3 +++ math/test-fenvinline.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f7ac661..e4f86dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h. * sysdeps/alpha/fpu/libm-test-ulps: Update. + * math/test-fenvinline.c (feenable_test): Cast fe_exc to + unsigned int before printing. + 2015-04-03 Rajalakshmi Srinivasaraghavan [BZ #17596] diff --git a/math/test-fenvinline.c b/math/test-fenvinline.c index 87c9df4..b02cefd 100644 --- a/math/test-fenvinline.c +++ b/math/test-fenvinline.c @@ -249,7 +249,7 @@ feenable_test (const char *flag_name, fexcept_t fe_exc) if (excepts != fe_exc) { printf ("Test: fedisableexcept (%s) failed, return should be 0x%x, is 0x%x\n", - flag_name, fe_exc, excepts); + flag_name, (unsigned int)fe_exc, excepts); ++count_errors; } @@ -284,7 +284,7 @@ feenable_test (const char *flag_name, fexcept_t fe_exc) if (excepts != fe_exc) { printf ("Test: fedisableexcept (%s) failed, return should be 0x%x, is 0x%x\n", - flag_name, fe_exc, excepts); + flag_name, (unsigned int)fe_exc, excepts); ++count_errors; } #endif