Message ID | 20240730153707.168357-11-nick.alcock@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 39757385C6E1 for <patchwork@sourceware.org>; Tue, 30 Jul 2024 15:41:44 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by sourceware.org (Postfix) with ESMTPS id 00AEB3857022 for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 00AEB3857022 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 00AEB3857022 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722353876; cv=pass; b=OeVMuVJgqyguLeZZ8ekbIybD9QH3+ZqrtiloNiDBWesJQ4+u4B2j78nNqIVZQzCCQPxdUG7DnyoGzUcd6BwrjlgvbFunvWkrR03bt8xZx1oesszkEo3a3UI9paVBwGEUWr2REsIYiD7o+bBxczL+RiSeSVfxdHYr/j84I/VbsVU= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722353876; c=relaxed/simple; bh=X0HiRjzgMCJyZCq+/lIOF3pDFqHxiAVtPAEQzbZ/lrQ=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=CQaY4eGOsbA765k1LFxdzjqJOYk3TL5bCqA3cT8lUXs9CTsfuSrOOqDinDCqpo5KeqF25nnirk4wYS8eFpRd/zya5i4WwTieMjqWelLvsdR8p69m3JdMk/rwiVQ4rs5oookIW0WpBZrfBkeTnSmYhsz8j/HH1M8i6s6o+0eeRzw= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46UFMWhx006633 for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=f5WigU7TBC8bvMsejo20jW+Sk8tL7xUHJdBkZHoXug8=; b= WkpJ62sQxcwF9oXGx9zUz4YdV0CpE15AWb5XFNZZYCrAQL7vwVHrqimtALPWhGMr XDd9diRoc5k3Ha/dcYWftyGjkHpJeODn0Nhtpp7iXwwb416moirsgwBK73zwn7bz fWl1ONlumY13lKYd16KII7vASuOqnIPaUSqdmIInC7FshB7TqZZgNuG9WRvyUnpI jEHk5PjVIv58CCSWh9edkLZv+cYZ+gbUAHfPk3OCtaWdI/zFcmOrL/qJksuPrb/F qk4WUaOkgO6LaXrnD4gIMOrEHJntmVO7Py8Uyv238SZr4pTqAqgeS8zNb4SPHyIP irK8o1XVzJORAIhswVHEIw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40mrs8na0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:53 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 46UFIvJP012274 for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:52 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2041.outbound.protection.outlook.com [104.47.57.41]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 40nkh6sqb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dhs503THiIzSRWcFMjEkRR8em601WlUrpn98yiFJJEeS1P65qRPwNMgbKD/gDLeoTreWv62DCKBEBRK+uYNTab8iYs7UaqKZREnz50kDPx3Yehi5QA/H8JkN74ibjHuYQn74VcS7BWAztS8dsvpelVcEYNSNZpIAvd8fau1YFAVCfahjITjkO6IX5QgapS1rQe96j+bMQnS61Ycu11jTtlyKOQGIb/bX2eYtzwcf5WaoDBu/n4ZIEUCwgmsXi0tDzyctn9Rc1I4M5k55CaMxkjcG0zsxmvPIepFA5434AiZocaUGR0yr7Vaz1vfFHfoN4z0EFsrpm0+FbSyctRGSvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=f5WigU7TBC8bvMsejo20jW+Sk8tL7xUHJdBkZHoXug8=; b=lq5jGF2LxmK7cnoVcbJWKw8aGvfGtiPaXmLmHofuEfisqm7ps+0IKZ3hkMGezVw+mV4YFFBkEOWlht27OWiW3Iogp08t+bszx5PhQXe/vFjRReAXiF5vSWrAYvgf47k8wItm2APaW39Te4e50F27pgGSVU+eskDbtrbyFALD75Epc7nUywww02WZdz1XlKTs20Am54p8KlihwED08eklVZ58J+lUnmQVVj741oPpZVTmghvp5mWVgLSSAu0j+q7E9SA/NGZYaRPnkWcy80nC95BJ8KZektlxuVSuZJsJLDHFFXby/NwTxughkjGmS27Vs4ZQ7O48DhbnISRqvlTTVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f5WigU7TBC8bvMsejo20jW+Sk8tL7xUHJdBkZHoXug8=; b=Nxy+g2gZhbO5L+32/j60Mh1uRLW8w/2UKplY/nFtT8jOzZS+qnhz95QLdjTTUW0a2CWEDqfmtdBinLnNwGwNVmpbzl5y6vHH39DolylTLBF2xks/2SuRVdIa6pAkWvB6q+zf0h1r/DtNiMRFREV+FpVLITNb9ctOIL1YDnnKUbE= Received: from MW4PR10MB6608.namprd10.prod.outlook.com (2603:10b6:303:22e::8) by DM4PR10MB7476.namprd10.prod.outlook.com (2603:10b6:8:17d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 15:37:49 +0000 Received: from MW4PR10MB6608.namprd10.prod.outlook.com ([fe80::b53a:ccc1:c190:c5df]) by MW4PR10MB6608.namprd10.prod.outlook.com ([fe80::b53a:ccc1:c190:c5df%6]) with mapi id 15.20.7807.026; Tue, 30 Jul 2024 15:37:49 +0000 From: Nick Alcock <nick.alcock@oracle.com> To: binutils@sourceware.org Subject: [PATCH 10/19] libctf, subr: don't mix up errors and warnings Date: Tue, 30 Jul 2024 16:36:58 +0100 Message-ID: <20240730153707.168357-11-nick.alcock@oracle.com> X-Mailer: git-send-email 2.45.2.276.g4ac82df17e In-Reply-To: <20240730153707.168357-1-nick.alcock@oracle.com> References: <20240730153707.168357-1-nick.alcock@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P123CA0645.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:296::16) To MW4PR10MB6608.namprd10.prod.outlook.com (2603:10b6:303:22e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR10MB6608:EE_|DM4PR10MB7476:EE_ X-MS-Office365-Filtering-Correlation-Id: 5171ea29-8100-44e3-eaa2-08dcb0ad9173 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: tlG0fvXh5+wXFo/DBX4jvO+C2LVS9IVom9LFDiJda6v9ghTho6AhB6S4TEC21jm+dlGxlT8vzrKbH1rJkcVudgcBbMtHOTwN7GLWLa22ruuxSqTf61KZ6t8xC9+Bp7umMoZrujLbdsNCO7fe4idjktY8cpUh+hGzf6+AJamSjyLT0sG9f6TFQaSVA46lJqUghcjQZ17XhpJk0hjLgIkxPLpp6w5fgvkV9R6N8qOXrGLV2Fia1iwzxoXD0wh+BQ7ie3FiDmoFNQxlkSwXsg3WUb8eqK727ljfTqoJzPW2OoYt3LNLWXnazN79muyOvX2Pa5NxPreMbAKccszDiFLHw22UNtwj8PndKplAqcxnumXqywhPN9xdvSgbCX479Fs6vpI/UteUATGccM7FiA6UmkhvrLsPiT9Qm5XLQtU8A0KHjPqLtZ6uEYWWSsO7xCwik3eST5bV9StwTONmb/JpavN9bVSsBGRPDT5dtgHgTXTVplcrtJKoF4hPOeVwc4gKrkDeaubfIGARBaGUjyK2w3i78U5fAAcJ/txf8PZC6h5TdNk7/c3kZklJYxt23ITAcDyVPiik4GH5K4Oep+d27Xqq8j6QGLNv1jVFwE0gvCb4bfzonOUaYvzmMhGUxhRCnE55cTjs42OF7qJsqVOKc9tveck0ODZSCofHbib+Da0/jWtOmUBt6UCIy/huh/Vjmhg0GQhCaJuZQe1V1F/t7FtcL7f0Z/1Md3KJKMiW9fqnwAOZBaUMr7AJoCxoptvnGYvvc31u6Cza+9A3oWOTp5qPiVbT5CjgZ71ES3iMJzlf6IdghYEcH30d7MPs9ADwUVSF0omQPyP53Zwd9KTJW8q54kAHdbthIzQD48Wf3/pCOzhhOecbeI03IFHYdvgqZqab5NSmACfmOlF3WHzGTW3BHuvPEKU9S4COu7Ggkv6p2Oj/qsY31bAV7Myxai7+DY8c2DPrDJ8FV8ZF8SatNxlVbfM2wsK53qqKDc3iCRD/+J2IlWkYfigm5JcTGdGD874z5AUGd2l55jD6bhJsIETzoeEKOJLd4gZX/sVoKyS1sPU8R4S9BZszPTdCoRUHaakz7J/ZMVRDujHtpuM7hTZGY8HJcV8P2vR+3eEQoLM9z/ztknhSZ919mnqOzJ4XotqIp42j1RKYtrZ45TM1o7oLNlVfM8LAtt8beDocb+yU2JPEz/tW0X3q2jWW5Ejq2jlZJn0yhelFgKY0SWDjrSBs+ZzB0MPb6xbBlOHrTFRs8+qWV5YLa79ACmhrIDri4KPVg5ozBJmmWj7NU5BUNtgPMb4HIp4+gNvf47M1nOc0m8ba9OhuDdPFJdQWnfumpyCtSK6vWwn65xw+5816eA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR10MB6608.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: h/9pKLI2eA3WgNw5U8IQrpv21oVHNq2/qxhpJZ/jlQeBhYIBzdtsrG0/KapwuCuZrEvg1nAOxzEnAgSDgH3XjU2YYOEGo9Z7k6ExQbg+jANEUGWoXHdZpRixlROIHqM3zYa9QQt3K4A85JQLEgTd7frSkLBaiV/O7dsRYs1ize3XIRknN0OluNOqBVMNvQNCJA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3htKSwfEY8bvISxQ1Epdc/QEV8jMU6hRuIdObjjTDCDmlemjpLELrdCVVF/mnXoFsX6WODK6zpDULCZiE7FFa8fk+o/8XARu+Fd2R1FbyfQ+Y6crxHbFrqFeJhbyrppsXen3h434XX4R+C2DbzV9/unLzbCtSATAU8bjKl8t6PcyzhHOL7HDosrHQxcdKUDX+zpw5J+1aCHbjQTir54jwa+PSgj9c1X/olcHf4VkoTOvBPThD73kSa97toldnl4SWDtutgJTy4CGzJ/oHe5I1+luWSWbuI3M5uFo9BEOCTWCU3cFG0XSRZ6UFDaohviUt8ywBKqosAidSPaoQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: RD/bY6lFjkC2baymYpPJBkTb9Im5qwWVJfqzuVjMVoLpSCHzNgRXFzc96v6NzqEF/Q6Oj1Eogb5+/VpvetJD5RghtqH76j2lNsPPvyDfMmZS/OQyT6dFhqHgurYVwf6jV4vRLT0r6GvU6xc1d41OwrV/iBsLvtRsSELcJ7Ccd985S6C2zpGz8tDESgvEc1kIXoizPkDSTdeUCDtykZAlK6230QrqTnmCScbPzlehqatAseSfdQ+6Ki+5kFUU7cG6WqAYpaCFScaJqjEoKlNlO+RIDkroWyNiCh4nl6de8uyPmsDTK7dct4cpo6fFhZvebLoUCK1JOvw4wtRTyC3Cq/35nAMeV58Gl2gT7QVDNhIiq6ZWTLspKdL6E0iX4nJm+D4IY1cTeEt0FR7Vi0e5fLC81mqhGS9i5j5a0F5B59FZrhDyW0gqHlZ2JxP3SzpP+WGd3PFtmW3bDE45JOMoIqyd7BNyGtPEThh3ATw2ro7cu8DbQ/9aR2LkBuZ237JlTlHTwq5bCZq7ZrD0j2IkkOyRfttA444psHmBNyVtZ7HUjFbiun1HelLLVtdWuLx6Y3UiDG0sjwv9NCMrwnKfZ0I2FDFRs2TGPxtushv6pCo= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5171ea29-8100-44e3-eaa2-08dcb0ad9173 X-MS-Exchange-CrossTenant-AuthSource: MW4PR10MB6608.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 15:37:49.7076 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /4IFVSln2SR9VVP8kQY+vnp++9hsfboKPVHX0DGtNyPknvcOON+HLe/3RhHYkKhZMIVYTPrTrUkef9MTo2KAFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7476 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-30_12,2024-07-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=927 malwarescore=0 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2407300106 X-Proofpoint-GUID: g4ZYMrZ27iJgG89Xoox6sFfb7WzjPRjb X-Proofpoint-ORIG-GUID: g4ZYMrZ27iJgG89Xoox6sFfb7WzjPRjb X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
Series |
libctf: various bugfixes (including a write into freed memory), and loosen constraints on enums
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
Nick Alcock
July 30, 2024, 3:36 p.m. UTC
ctf_err_warn() was debug-logging warnings as if they were errors and vice versa. libctf/ * ctf-subr.c (ctf_err_warn): Fix debugging thinko. --- libctf/ctf-subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libctf/ctf-subr.c b/libctf/ctf-subr.c index deb9e0ba5c4..6dbf3e7231a 100644 --- a/libctf/ctf-subr.c +++ b/libctf/ctf-subr.c @@ -231,11 +231,11 @@ ctf_err_warn (ctf_dict_t *fp, int is_warning, int err, lead to unwinding up to the user.) */ if ((!is_warning && (err != 0 || (fp && ctf_errno (fp) != 0))) || (is_warning && err != 0)) - ctf_dprintf ("%s: %s (%s)\n", is_warning ? _("error") : _("warning"), + ctf_dprintf ("%s: %s (%s)\n", is_warning ? _("warning") : _("error"), cew->cew_text, err != 0 ? ctf_errmsg (err) : ctf_errmsg (ctf_errno (fp))); else - ctf_dprintf ("%s: %s\n", is_warning ? _("error") : _("warning"), + ctf_dprintf ("%s: %s\n", is_warning ? _("warning") : _("error"), cew->cew_text); if (fp != NULL)