Skip to content

Commit

Permalink
cstool: align assembly output
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Oct 24, 2017
1 parent d7281e9 commit e965a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cstool/cstool.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ int main(int argc, char **argv)
for (i = 0; i < count; i++) {
int j;

printf("%"PRIx64" ", insn[i].address);
printf("%2"PRIx64" ", insn[i].address);
for (j = 0; j < insn[i].size; j++) {
if (j > 0)
putchar(' ');
Expand All @@ -365,7 +365,7 @@ int main(int argc, char **argv)
// align assembly instruction after the opcode
if (arch == CS_ARCH_X86) {
for (; j < 16; j++) {
printf(" ");
printf(" ");
}
}

Expand Down

0 comments on commit e965a58

Please sign in to comment.