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
radare committed Jun 19, 2024
1 parent 563b02e commit a1607b8
Showing 1 changed file with 3 additions and 6 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

0 comments on commit a1607b8

Please sign in to comment.