From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id BA91A385800E for ; Mon, 31 Oct 2022 00:16:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BA91A385800E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=harmstone.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-x432.google.com with SMTP id v1so13832038wrt.11 for ; Sun, 30 Oct 2022 17:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=nfz8ECdITOaIvBqHx4IwM9ghDrg5aL7at8aUHubhe6Q=; b=FSTTjbZby2o1MyHF7Cu+gB4eGp6ymXSOcvf6Sokp6uSUIQCgsawo4HZf+qnKrzEf+v gEmRJo/VHLfqVdR5sjqVB2Cqfc5CHKv/oFmWKsxXjlcNq7f6COQLd9b2Bp0nb2EBfMLH +P56ehJfsQfJ+kmPbSfYdtwqx9X16kuSf1eQWb9QU7UJ8Ymd2MuMikj0l5L/GEqG+Bld b/TmomFIgY4aYwyfYP/G+IgLKhBVRIRDgyPWC7XsN8whQFfd5eXx73HLQ/krbNAebCI9 KmLxeBpwpAdhmrCqCbu/Ogb9D3ZhvjYglhmAVtAKU7TBE0z2Qx5Xn9BXEM89CF/i8lxH YgGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nfz8ECdITOaIvBqHx4IwM9ghDrg5aL7at8aUHubhe6Q=; b=BXmnKZBGSahtCA6hA7Ihlh5/npEEBkV2jmMhk612zOVHdLBN3WCbiPtL9d2qZIhxvf 7Vp6qyeXOBYd3zchL+x6wNmngOEVTCzFkhz2UCYu70I6kWS4fFnCwZD8EWitY2GCmFpg njvp4JpLqTv1preN8U6j8blnh3u7+EagPhtArh+K/NLTxQHNrsZ4eOMljzH6kupVZ4pq 00vHvkobNUhoGzRVOZfK6qpSoqJcDIqM6Bg8hAJ+T2wT5PVY9Z1Fo4+TPeUW7AxkjWNk 9mn7uM1G37OjS2GNHGHAWdB/GEZBocKvEnERBuNIgSaIkg/wMp6esnarA6ztgwLf7Ntr AXZw== X-Gm-Message-State: ACrzQf2qTuEZsmyy/6uSHVw0ohv/wonsiiciZlV6+chzEqm2y7jTkqg4 nLCspXGpFGYjrR/yipp0Eza6WQnmaf4= X-Google-Smtp-Source: AMsMyM5ozR1hiEQ6PmW+eTKXxg7fS78pgIidHGGYrdqMCfoCbJ2icN6F3Ib2DFkkwhg8r4qLBRnBNQ== X-Received: by 2002:a05:6000:10a:b0:236:6a79:f5cf with SMTP id o10-20020a056000010a00b002366a79f5cfmr5974222wrx.470.1667175385167; Sun, 30 Oct 2022 17:16:25 -0700 (PDT) Received: from beren.harmstone.com ([2a02:8010:64ea:0:8eb8:7eff:fe53:9d5f]) by smtp.gmail.com with ESMTPSA id bp21-20020a5d5a95000000b002302dc43d77sm5389067wrb.115.2022.10.30.17.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Oct 2022 17:16:24 -0700 (PDT) Sender: Mark Harmstone From: Mark Harmstone To: binutils@sourceware.org Cc: Mark Harmstone Subject: [PATCH v2 1/3] ld: Use %E in einfo in pdb.c Date: Mon, 31 Oct 2022 00:15:52 +0000 Message-Id: <20221031001554.14615-1-mark@harmstone.com> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,GIT_PATCH_0,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: Resubmission, taking into account https://sourceware.org/pipermail/binutils/2022-October/123948.html. --- ld/pdb.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/ld/pdb.c b/ld/pdb.c index 3452e2cbe5b..80ed31e257a 100644 --- a/ld/pdb.c +++ b/ld/pdb.c @@ -444,8 +444,7 @@ create_pdb_file (bfd *abfd, const char *pdb_name, const unsigned char *guid) pdb = bfd_openw (pdb_name, "pdb"); if (!pdb) { - einfo (_("%P: warning: cannot create PDB file: %s\n"), - bfd_errmsg (bfd_get_error ())); + einfo (_("%P: warning: cannot create PDB file: %E\n")); return false; } @@ -454,7 +453,7 @@ create_pdb_file (bfd *abfd, const char *pdb_name, const unsigned char *guid) if (!create_old_directory_stream (pdb)) { einfo (_("%P: warning: cannot create old directory stream " - "in PDB file: %s\n"), bfd_errmsg (bfd_get_error ())); + "in PDB file: %E\n")); goto end; } @@ -463,14 +462,14 @@ create_pdb_file (bfd *abfd, const char *pdb_name, const unsigned char *guid) if (!info_stream) { einfo (_("%P: warning: cannot create info stream " - "in PDB file: %s\n"), bfd_errmsg (bfd_get_error ())); + "in PDB file: %E\n")); goto end; } if (!create_type_stream (pdb)) { einfo (_("%P: warning: cannot create TPI stream " - "in PDB file: %s\n"), bfd_errmsg (bfd_get_error ())); + "in PDB file: %E\n")); goto end; } @@ -479,14 +478,14 @@ create_pdb_file (bfd *abfd, const char *pdb_name, const unsigned char *guid) if (!dbi_stream) { einfo (_("%P: warning: cannot create DBI stream " - "in PDB file: %s\n"), bfd_errmsg (bfd_get_error ())); + "in PDB file: %E\n")); goto end; } if (!create_type_stream (pdb)) { einfo (_("%P: warning: cannot create IPI stream " - "in PDB file: %s\n"), bfd_errmsg (bfd_get_error ())); + "in PDB file: %E\n")); goto end; } @@ -495,21 +494,21 @@ create_pdb_file (bfd *abfd, const char *pdb_name, const unsigned char *guid) if (!names_stream) { einfo (_("%P: warning: cannot create /names stream " - "in PDB file: %s\n"), bfd_errmsg (bfd_get_error ())); + "in PDB file: %E\n")); goto end; } if (!populate_dbi_stream (dbi_stream, abfd)) { einfo (_("%P: warning: cannot populate DBI stream " - "in PDB file: %s\n"), bfd_errmsg (bfd_get_error ())); + "in PDB file: %E\n")); goto end; } if (!populate_info_stream (pdb, info_stream, guid)) { einfo (_("%P: warning: cannot populate info stream " - "in PDB file: %s\n"), bfd_errmsg (bfd_get_error ())); + "in PDB file: %E\n")); goto end; } -- 2.37.4