aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2024-07-15 21:04:24 +0100
committerNick Alcock <nick.alcock@oracle.com>2024-07-31 21:02:05 +0100
commitc3256db5c30945a68e71ebce93854845a9735cfe (patch)
tree0af5ce63b95131a0013ea2518811088d9c60df8d /libctf
parent67588c4dd687fee5164592ee2054638e53bee62f (diff)
downloadgdb-c3256db5c30945a68e71ebce93854845a9735cfe.zip
gdb-c3256db5c30945a68e71ebce93854845a9735cfe.tar.gz
gdb-c3256db5c30945a68e71ebce93854845a9735cfe.tar.bz2
libctf, subr: don't mix up errors and warnings
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.
Diffstat (limited to 'libctf')
-rw-r--r--libctf/ctf-subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libctf/ctf-subr.c b/libctf/ctf-subr.c
index deb9e0b..6dbf3e7 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)