diff --git a/src/mdbx_chk.c b/src/mdbx_chk.c index 47abad47..9993334b 100644 --- a/src/mdbx_chk.c +++ b/src/mdbx_chk.c @@ -678,7 +678,7 @@ static int process_db(MDBX_dbi dbi_handle, char *dbi_name, visitor *handler, if (!dbi_name || rc != MDBX_INCOMPATIBLE) /* LY: mainDB's record is not a user's DB. */ { - error("mdbx_open '%s' failed, error %d %s\n", + error("mdbx_dbi_open '%s' failed, error %d %s\n", dbi_name ? dbi_name : "main", rc, mdbx_strerror(rc)); } return rc; diff --git a/src/mdbx_drop.c b/src/mdbx_drop.c index 4f9dfea4..232f3d16 100644 --- a/src/mdbx_drop.c +++ b/src/mdbx_drop.c @@ -167,7 +167,7 @@ int main(int argc, char *argv[]) { rc = mdbx_dbi_open(txn, subname, MDBX_DB_ACCEDE, &dbi); if (unlikely(rc != MDBX_SUCCESS)) { - error("mdbx_open", rc); + error("mdbx_dbi_open", rc); goto txn_abort; }