From 40cf3e4674ba6728478bd823e2bf97d60c783857 Mon Sep 17 00:00:00 2001 From: radare Date: Tue, 14 Aug 2018 05:51:13 +0200 Subject: [PATCH] Use dashes in dm output instead of hash sign. (#11076) --- libr/debug/map.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libr/debug/map.c b/libr/debug/map.c index 5df0d33d2d..6ffa4adecf 100644 --- a/libr/debug/map.c +++ b/libr/debug/map.c @@ -44,8 +44,8 @@ static void print_debug_map_line(RDebug *dbg, RDebugMap *map, ut64 addr, const c } else { char sizebuf[128]; const char *fmtstr = dbg->bits & R_SYS_BITS_64 - ? "0x%016"PFMT64x" # 0x%016"PFMT64x" %c %s %6s %c %s %s %s%s%s\n" - : "0x%08"PFMT64x" # 0x%08"PFMT64x" %c %s %6s %c %s %s %s%s%s\n"; + ? "0x%016"PFMT64x" - 0x%016"PFMT64x" %c %s %6s %c %s %s %s%s%s\n" + : "0x%08"PFMT64x" - 0x%08"PFMT64x" %c %s %6s %c %s %s %s%s%s\n"; const char *type = map->shared? "sys": "usr"; const char *flagname = dbg->corebind.getName ? dbg->corebind.getName (dbg->corebind.core, map->addr) : NULL; @@ -84,14 +84,14 @@ R_API void r_debug_map_list(RDebug *dbg, ut64 addr, const char *input) { } switch (input[0]) { - case 'j': // "dmj" add JSON opening array brace - dbg->cb_printf ("["); - break; - case '*': // "dm*" dont print a header for r2 commands output - break; - default: - // TODO: Find a way to only print headers if output isn't being grepped - print_debug_map_line_header (dbg, input); + case 'j': // "dmj" add JSON opening array brace + dbg->cb_printf ("["); + break; + case '*': // "dm*" dont print a header for r2 commands output + break; + default: + // TODO: Find a way to only print headers if output isn't being grepped + print_debug_map_line_header (dbg, input); } for (i = 0; i < 2; i++) { // Iterate over dbg::maps and dbg::maps_user