mdbx-tools: minor fix error messages.

Change-Id: Id2efb3db70b5df49e84bc9a8bb47645afe0eb187
This commit is contained in:
Leonid Yuriev 2021-04-18 19:26:07 +03:00
parent f3c078fcbf
commit bedd13d411
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}