}
if (err != ECTF_NEXT_END)
{
- ctf_err_warn (output, 0, err, _("cannot recurse over output mapping"));
ctf_set_errno (output, err);
+ ctf_err_warn (output, 0, 0, _("cannot recurse over output mapping"));
goto err;
}
ctf_dynset_destroy (already_visited);
if ((outputs = calloc (num_outputs, sizeof (ctf_dict_t *))) == NULL)
{
- ctf_err_warn (output, 0, ENOMEM,
- _("out of memory allocating link outputs array"));
ctf_set_errno (output, ENOMEM);
+ ctf_err_warn (output, 0, 0,
+ _("out of memory allocating link outputs array"));
return NULL;
}
*noutputs = num_outputs;
else
{
ctf_set_errno (fp, ECTF_INTERNAL);
- ctf_err_warn (fp, 0, ECTF_INTERNAL,
+ ctf_err_warn (fp, 0, 0,
_("dict %p passed to ctf_dedup_type_mapping is not a "
"deduplicated output"), (void *) fp);
return CTF_ERR;
if ((cu_fp = ctf_create (&err)) == NULL)
{
- ctf_err_warn (fp, 0, err, _("cannot create per-CU CTF archive for "
- "input CU %s"), cu_name);
ctf_set_errno (fp, err);
+ ctf_err_warn (fp, 0, 0, _("cannot create per-CU CTF archive for "
+ "input CU %s"), cu_name);
return NULL;
}
}
if (err != ECTF_NEXT_END)
{
- ctf_err_warn (fp, 0, err, _("iteration error in deduplicating link "
- "input freeing"));
ctf_set_errno (fp, err);
+ ctf_err_warn (fp, 0, 0, _("iteration error in deduplicating link "
+ "input freeing"));
}
}
else
if (ctf_errno (input) != ECTF_NEXT_END)
{
ctf_set_errno (fp, ctf_errno (input));
- ctf_err_warn (fp, 0, ctf_errno (input),
- functions ? _("iterating over function symbols") :
+ ctf_err_warn (fp, 0, 0, functions ?
+ _("iterating over function symbols") :
_("iterating over data symbols"));
return -1;
}
if (labs ((long int) ninputs) > 0xfffffffe)
{
- ctf_err_warn (fp, 0, EFBIG, _("too many inputs in deduplicating "
- "link: %li"), (long int) ninputs);
ctf_set_errno (fp, EFBIG);
+ ctf_err_warn (fp, 0, 0, _("too many inputs in deduplicating "
+ "link: %li"), (long int) ninputs);
goto err_open_inputs;
}
&ai, NULL, 0, &err);
if (!only_input->clin_fp)
{
- ctf_err_warn (fp, 0, err, _("cannot open archive %s in "
- "CU-mapped CTF link"),
- only_input->clin_filename);
ctf_set_errno (fp, err);
+ ctf_err_warn (fp, 0, 0, _("cannot open archive %s in "
+ "CU-mapped CTF link"),
+ only_input->clin_filename);
goto err_open_inputs;
}
ctf_next_destroy (ai);
}
oom:
ctf_set_errno (fp, ENOMEM);
- ctf_err_warn (fp, 0, ENOMEM, _("cannot allocate memory for symbol "
- "lookup hashtab"));
+ ctf_err_warn (fp, 0, 0, _("cannot allocate memory for symbol "
+ "lookup hashtab"));
return (unsigned long) -1;
}
ctf_assert_fail_internal (ctf_dict_t *fp, const char *file, size_t line,
const char *exprstr)
{
- ctf_err_warn (fp, 0, ECTF_INTERNAL, _("%s: %lu: libctf assertion failed: %s"),
- file, (long unsigned int) line, exprstr);
ctf_set_errno (fp, ECTF_INTERNAL);
+ ctf_err_warn (fp, 0, 0, _("%s: %lu: libctf assertion failed: %s"),
+ file, (long unsigned int) line, exprstr);
}