From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2103) id 4532A3849ADD; Fri, 19 Apr 2024 15:51:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4532A3849ADD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713541884; bh=sWIVMUllOzQTa7EbZEtNduD0y4vX5ysGzc6sj78IUF8=; h=From:To:Subject:Date:From; b=T/fQFxlFuW036jECyEsdNhRcdCc8yA0xtFiKPs9EKyHpZmo266p2VXVAsMGDpXa7t WW6sXCRRG+KuvxF/PnaMSCvJdn0iFOXb8k6Vsyrej+JMRMo2hDnsnPF3nidu/GU25S W6i9WcmNfKKQN5AHYjHEEvJSlyZQgRYn9PXSowqE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Alcock To: binutils-cvs@sourceware.org Subject: [binutils-gdb] libctf: fix a comment X-Act-Checkin: binutils-gdb X-Git-Author: Nick Alcock X-Git-Refname: refs/heads/master X-Git-Oldrev: 8a60c93096326ef818dd72d0a44bd575a04cc55a X-Git-Newrev: b4b77b26e220c065123c455c8ed81086c8481c10 Message-Id: <20240419155124.4532A3849ADD@sourceware.org> Date: Fri, 19 Apr 2024 15:51:24 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Db4b77b26e220= c065123c455c8ed81086c8481c10 commit b4b77b26e220c065123c455c8ed81086c8481c10 Author: Nick Alcock Date: Tue Dec 19 17:14:35 2023 +0000 libctf: fix a comment =20 A mistaken "not" in ctf_err_warn made it seem like we only extracted error messages if this was not an error. =20 libctf/ =20 * ctf-subr.c (ctf_err_warn): Fix comment. Diff: --- libctf/ctf-subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libctf/ctf-subr.c b/libctf/ctf-subr.c index a21048d0032..ecc68848d31 100644 --- a/libctf/ctf-subr.c +++ b/libctf/ctf-subr.c @@ -225,7 +225,7 @@ ctf_err_warn (ctf_dict_t *fp, int is_warning, int err, } va_end (alist); =20 - /* Include the error code only if there is one; if this is not a warning, + /* Include the error code only if there is one; if this is a warning, only use the error code if it was explicitly passed and is nonzero. (Warnings may not have a meaningful error code, since the warning may= not lead to unwinding up to the user.) */