[06/22] libctf: fix a comment

Message ID 20240417202018.34966-7-nick.alcock@oracle.com
State New
Series more modifiable CTF dicts (and a few bugfixes) |


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 April 17, 2024, 8:20 p.m. UTC
  A mistaken "not" in ctf_err_warn made it seem like we only extracted
error messages if this was not an error.


	* ctf-subr.c (ctf_err_warn): Fix comment.
 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);
-  /* 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.)  */