*/
void openssl_post_errors(int code, const char *errstring)
{
- openssl_post_errors(get_jcr_from_tid(), code, errstring);
+ openssl_post_errors(NULL, code, errstring);
}
while((sslerr = ERR_get_error()) != 0) {
/* Acquire the human readable string */
ERR_error_string_n(sslerr, buf, sizeof(buf));
- Dmsg3(100, "jcr=%p %s: ERR=%s\n", jcr, errstring, buf);
- Jmsg2(jcr, M_ERROR, 0, "%s: ERR=%s\n", errstring, buf);
+ Dmsg3(50, "jcr=%p %s: ERR=%s\n", jcr, errstring, buf);
+ Qmsg2(jcr, M_ERROR, 0, "%s: ERR=%s\n", errstring, buf);
}
}
if ((stat = pthread_mutex_init(&dynlock->mutex, NULL)) != 0) {
berrno be;
- Jmsg1(get_jcr_from_tid(), M_ABORT, 0, _("Unable to init mutex: ERR=%s\n"),
- be.bstrerror(stat));
+ Jmsg1(NULL, M_ABORT, 0, _("Unable to init mutex: ERR=%s\n"), be.bstrerror(stat));
}
return dynlock;
if ((stat = pthread_mutex_destroy(&dynlock->mutex)) != 0) {
berrno be;
- Jmsg1(get_jcr_from_tid(), M_ABORT, 0, _("Unable to destroy mutex: ERR=%s\n"),
- be.bstrerror(stat));
+ Jmsg1(NULL, M_ABORT, 0, _("Unable to destroy mutex: ERR=%s\n"), be.bstrerror(stat));
}
free(dynlock);
for (i = 0; i < numlocks; i++) {
if ((stat = pthread_mutex_init(&mutexes[i], NULL)) != 0) {
berrno be;
- Jmsg1(get_jcr_from_tid(), M_ERROR, 0, _("Unable to init mutex: ERR=%s\n"),
- be.bstrerror(stat));
+ Jmsg1(NULL, M_FATAL, 0, _("Unable to init mutex: ERR=%s\n"), be.bstrerror(stat));
return stat;
}
}
if ((stat = pthread_mutex_destroy(&mutexes[i])) != 0) {
berrno be;
/* We don't halt execution, reporting the error should be sufficient */
- Jmsg1(get_jcr_from_tid(), M_ERROR, 0, _("Unable to destroy mutex: ERR=%s\n"),
+ Jmsg1(NULL, M_ERROR, 0, _("Unable to destroy mutex: ERR=%s\n"),
be.bstrerror(stat));
}
}