From d1fd135df322beb93a88eb038c1da1777c82a780 Mon Sep 17 00:00:00 2001 From: Hertatijanto Hartono Date: Mon, 17 Jul 2023 03:20:36 +0700 Subject: [PATCH] Reopening file should not be identified as an error --- librz/core/cfile.c | 3 +-- test/db/archos/linux-x64/dbg_oo | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/librz/core/cfile.c b/librz/core/cfile.c index a40e6891fe2..0937143aba8 100644 --- a/librz/core/cfile.c +++ b/librz/core/cfile.c @@ -423,8 +423,7 @@ RZ_API bool rz_core_file_reopen(RzCore *core, const char *args, int perm, int lo rz_core_file_set_by_file(core, file); ofile = NULL; odesc = NULL; - // core->file = file; - RZ_LOG_ERROR("File %s reopened in %s mode\n", path, + RZ_LOG_WARN("File %s reopened in %s mode\n", path, (perm & RZ_PERM_W) ? "read-write" : "read-only"); if (loadbin && (loadbin == 2 || had_rbin_info)) { diff --git a/test/db/archos/linux-x64/dbg_oo b/test/db/archos/linux-x64/dbg_oo index c49ab606290..93b46f624bb 100644 --- a/test/db/archos/linux-x64/dbg_oo +++ b/test/db/archos/linux-x64/dbg_oo @@ -108,7 +108,7 @@ RUN NAME=ood check for ptrace errors FILE=bins/elf/analysis/x86-helloworld-gcc -ARGS=-e log.level=5 +ARGS=-e log.level=4 CMDS=<