From bedd13d411bd4c0a3ee7b30d5bf17ffb5a14ff34 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sun, 18 Apr 2021 19:26:07 +0300 Subject: [PATCH] mdbx-tools: minor fix error messages. Change-Id: Id2efb3db70b5df49e84bc9a8bb47645afe0eb187 --- src/mdbx_chk.c | 2 +- src/mdbx_drop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }