aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2023-12-19 17:14:35 +0000
committerNick Alcock <nick.alcock@oracle.com>2024-04-19 16:14:46 +0100
commitb4b77b26e220c065123c455c8ed81086c8481c10 (patch)
tree1ed29629ca7dc8f391cb5061e9c5b5a9a1deea71 /libctf
parent8a60c93096326ef818dd72d0a44bd575a04cc55a (diff)
downloadgdb-b4b77b26e220c065123c455c8ed81086c8481c10.zip
gdb-b4b77b26e220c065123c455c8ed81086c8481c10.tar.gz
gdb-b4b77b26e220c065123c455c8ed81086c8481c10.tar.bz2
libctf: fix a comment
A mistaken "not" in ctf_err_warn made it seem like we only extracted error messages if this was not an error. libctf/ * ctf-subr.c (ctf_err_warn): Fix comment.
Diffstat (limited to 'libctf')
-rw-r--r--libctf/ctf-subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libctf/ctf-subr.c b/libctf/ctf-subr.c
index a21048d..ecc6884 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);
- /* 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.) */