From b9abbdf623f4d00a7d5d208107769d220e05bda8 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 9 Jul 2014 11:21:41 -0700 Subject: [PATCH] Add missing mdb_strerror calls to debug msgs --- servers/slapd/back-mdb/init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-mdb/init.c b/servers/slapd/back-mdb/init.c index d59b207bc6..42378074cc 100644 --- a/servers/slapd/back-mdb/init.c +++ b/servers/slapd/back-mdb/init.c @@ -176,18 +176,18 @@ mdb_db_open( BackendDB *be, ConfigReply *cr ) if ( rc ) { Debug( LDAP_DEBUG_ANY, - LDAP_XSTRING(mdb_db_open) ": database \"%s\" cannot be opened, err %d. " + LDAP_XSTRING(mdb_db_open) ": database \"%s\" cannot be opened: %s (%d). " "Restore from backup!\n", - be->be_suffix[0].bv_val, rc, 0 ); + be->be_suffix[0].bv_val, mdb_strerror(rc), rc ); goto fail; } rc = mdb_txn_begin( mdb->mi_dbenv, NULL, flags & MDB_RDONLY, &txn ); if ( rc ) { Debug( LDAP_DEBUG_ANY, - LDAP_XSTRING(mdb_db_open) ": database \"%s\" cannot be opened, err %d. " + LDAP_XSTRING(mdb_db_open) ": database \"%s\" cannot be opened: %s (%d). " "Restore from backup!\n", - be->be_suffix[0].bv_val, rc, 0 ); + be->be_suffix[0].bv_val, mdb_strerror(rc), rc ); goto fail; } -- 2.39.2