Skip to content

Commit

Permalink
Remove trailing space in aflq output ##shell
Browse files Browse the repository at this point in the history
  • Loading branch information
trufae committed Jun 19, 2024
1 parent e3d755f commit 061f5b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
9 changes: 3 additions & 6 deletions libr/core/canal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2885,9 +2885,9 @@ static int fcn_list_verbose(RCore *core, RList *fcns, const char *sortby) {
return 0;
}

static void __fcn_print_default(RCore *core, RAnalFunction *fcn, bool quiet) {
static void fcn_print(RCore *core, RAnalFunction *fcn, bool quiet) {
if (quiet) {
r_cons_printf ("0x%08"PFMT64x" ", fcn->addr);
r_cons_printf ("0x%08"PFMT64x"\n", fcn->addr);
} else {
const bool use_colors = core->print->flags & R_PRINT_FLAGS_COLOR;
char *name = r_core_anal_fcn_name (core, fcn);
Expand All @@ -2911,10 +2911,7 @@ static int fcn_list_default(RCore *core, RList *fcns, bool quiet, bool dorefs) {
RListIter *iter;
RAnalFunction *fcn;
r_list_foreach (fcns, iter, fcn) {
__fcn_print_default (core, fcn, quiet);
if (quiet) {
r_cons_newline ();
}
fcn_print (core, fcn, quiet);
}
return 0;
}
Expand Down
20 changes: 10 additions & 10 deletions test/db/anal/snes
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ maxopsz 3
invopsz 1
dtalign 1
codealign 1
0x00400000
0x00400039
0x00408399
0x0040839c
0x0040839f
0x004083a2
0x004083a5
0x004083a8
0x004083ab
0x004083ae
0x00400000
0x00400039
0x00408399
0x0040839c
0x0040839f
0x004083a2
0x004083a5
0x004083a8
0x004083ab
0x004083ae
EOF
RUN

Expand Down

0 comments on commit 061f5b7

Please sign in to comment.