Skip to content

Commit

Permalink
dbt: Don't print trailing space
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy committed Dec 27, 2024
1 parent 51a5eb3 commit b13c394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions librz/core/cmd/cmd_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -2020,8 +2020,10 @@ RZ_IPI RzCmdStatus rz_cmd_debug_display_bt_handler(RzCore *core, int argc, const
switch (mode) {
case RZ_OUTPUT_MODE_STANDARD: {
rz_cons_printf("%d %s sp: %s %-5d"
"[%s] %s %s\n",
i++, bt->pcstr, bt->spstr, bt->frame->size, bt->fcn ? bt->fcn->name : "??", rz_str_get(bt->flagdesc), rz_str_get(bt->flagdesc2));
"[%s]%s%s%s%s\n",
i++, bt->pcstr, bt->spstr, bt->frame->size, bt->fcn ? bt->fcn->name : "??",
bt->flagdesc ? " " : "", rz_str_get(bt->flagdesc),
bt->flagdesc2 ? " " : "", rz_str_get(bt->flagdesc2));
break;
}
case RZ_OUTPUT_MODE_RIZIN: {
Expand Down
2 changes: 1 addition & 1 deletion test/db/archos/linux-x64/dbg_trace
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ EOF
REGEXP_FILTER_OUT=("?main[^\n"]*"?)|("?entry0[^\n"]*"?)|(loc\.[^_][^\n]*)|(----)
EXPECT=<<EOF
main loc.func_6+6
entry0+41
entry0+41
----
"main loc.func_6+6"
"entry0+41"
Expand Down

0 comments on commit b13c394

Please sign in to comment.