From: Howard Chu Date: Wed, 9 Jul 2014 18:21:41 +0000 (-0700) Subject: Add missing mdb_strerror calls to debug msgs X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b9abbdf623f4d00a7d5d208107769d220e05bda8;p=openldap Add missing mdb_strerror calls to debug msgs --- 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; }