Skip to content

Commit

Permalink
[UI] Fix System Registers window for a 3 digits CPU id number
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Dec 6, 2024
1 parent a33aa70 commit 8eae541
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aarch64/corefreq-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,8 +1129,8 @@ REASON_CODE SystemRegisters( Window *win,
PRT(REG, attrib[0], RSC(SYS_REGS_SPACE).CODE());
break;
case DO_CPU:
PRT(REG,attrib[BITVAL(RO(Shm)->Cpu[cpu].OffLine,OS) ? 4:3],
"#%-2u ", cpu);
PRT(REG, attrib[BITVAL(RO(Shm)->Cpu[cpu].OffLine,OS) ? 4:3],
"#%-3u", cpu);
break;
default:
{
Expand Down
4 changes: 2 additions & 2 deletions x86_64/corefreq-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,8 @@ REASON_CODE SystemRegisters( Window *win,
PRT(REG, attrib[0], RSC(SYS_REGS_SPACE).CODE());
break;
case DO_CPU:
PRT(REG,attrib[BITVAL(RO(Shm)->Cpu[cpu].OffLine,OS) ? 4:3],
"#%-2u ", cpu);
PRT(REG, attrib[BITVAL(RO(Shm)->Cpu[cpu].OffLine,OS) ? 4:3],
"#%-3u", cpu);
break;
default:
{
Expand Down

0 comments on commit 8eae541

Please sign in to comment.