summaryrefslogtreecommitdiff
path: root/src/support/err.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-03-20 17:46:54 -0400
committerKeith Bostic <keith@wiredtiger.com>2015-03-20 17:46:54 -0400
commit40c0ea67fa566d9e85772bb902625472cef73446 (patch)
tree9724b8fccc870f43ae90a5aa61c523cc26245313 /src/support/err.c
parent76769387c81973336cf158d5a00ccf3ecd5fe68c (diff)
downloadmongo-40c0ea67fa566d9e85772bb902625472cef73446.tar.gz
Switch uses of wiredtiger_strerror() for WT_SESSION.strerror().
Diffstat (limited to 'src/support/err.c')
-rw-r--r--src/support/err.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/support/err.c b/src/support/err.c
index 800a52901d0..b8be8ce5d4f 100644
--- a/src/support/err.c
+++ b/src/support/err.c
@@ -97,7 +97,7 @@ __handler_failure(WT_SESSION_IMPL *session,
(void)snprintf(s, sizeof(s),
"application %s event handler failed: %s",
- which, wiredtiger_strerror(error));
+ which, __wt_strerror(session, error, NULL, 0));
/*
* Use the error handler to report the failure, unless it was the error
@@ -175,7 +175,8 @@ __wt_eventv(WT_SESSION_IMPL *session, int msg_event, int error,
if (session == NULL)
return (fprintf(stderr, "WiredTiger Error%s%s: ",
error == 0 ? "" : ": ",
- error == 0 ? "" : wiredtiger_strerror(error)) < 0 ||
+ error == 0 ? "" :
+ __wt_strerror(session, error, NULL, 0)) < 0 ||
vfprintf(stderr, fmt, ap) < 0 ||
fprintf(stderr, "\n") < 0 ||
fflush(stderr) != 0 ? __wt_errno() : 0);
@@ -249,7 +250,7 @@ __wt_eventv(WT_SESSION_IMPL *session, int msg_event, int error,
* Use strcmp to compare: both strings are nul-terminated, and
* we don't want to run past the end of the buffer.
*/
- err = wiredtiger_strerror(error);
+ err = __wt_strerror(session, error, NULL, 0);
len = strlen(err);
if (WT_PTRDIFF(p, s) < len || strcmp(p - len, err) != 0) {
remain = WT_PTRDIFF(end, p);