From 0cb57b6742dd6499cc35818c19226752c093252a Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 18 Aug 2022 01:32:07 +0200 Subject: [PATCH] Use p8x and remove pcj from visual list ##visual --- libr/core/visual.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libr/core/visual.c b/libr/core/visual.c index ab6b291df0..fbd3c68ef0 100644 --- a/libr/core/visual.c +++ b/libr/core/visual.c @@ -65,7 +65,7 @@ static const char *print4Formats[PRINT_4_FORMATS] = { }; static R_TH_LOCAL int current5format = 0; static const char *print5Formats[PRINT_5_FORMATS] = { - "pca", "pcA", "p8", "pcc", "pss", "pcp", "pcd", "pcj" + "pca", "pcA", "p8x", "pcc", "pss", "pcp", "pcd", }; R_API void r_core_visual_applyHexMode(RCore *core, int hexMode) { @@ -2854,7 +2854,7 @@ R_API int r_core_visual_cmd(RCore *core, const char *arg) { int delta = (core->print->ocur != -1)? R_MIN (core->print->cur, core->print->ocur): core->print->cur; ut64 addr = core->offset + delta; if (!canWrite (core, addr)) { - r_cons_printf ("\nFile has been opened in read-only mode. Use -w flag, oo+ or e io.cache=true\n"); + R_LOG_ERROR ("File is read-only. Use `r2 -w` or run `oo+` or `e io.cache=true`"); r_cons_any_key (NULL); return true; }