Skip to content

Commit

Permalink
[CR][AArch64] Backport the format warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Feb 4, 2024
1 parent ed59a8c commit e56a53d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aarch64/corefreqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static void *Core_Cycle(void *arg)
}

if (Quiet & 0x100) {
printf(" Thread [%lx] Init CYCLE %03u\n", tid, cpu);
printf(" Thread [%lx] Init CYCLE %03u\n", (long) tid, cpu);
fflush(stdout);
}
BITSET_CC(BUS_LOCK, roomSeed, cpu);
Expand Down Expand Up @@ -408,7 +408,7 @@ static void *Core_Cycle(void *arg)
BITCLR_CC(BUS_LOCK, roomSeed, cpu);
EXIT:
if (Quiet & 0x100) {
printf(" Thread [%lx] %s CYCLE %03u\n", tid,
printf(" Thread [%lx] %s CYCLE %03u\n", (long) tid,
BITVAL(RO(Core)->OffLine, OS) ? "Offline" : "Shutdown",
cpu);
fflush(stdout);
Expand Down Expand Up @@ -498,7 +498,7 @@ static void *Child_Thread(void *arg)
free(comm);
}
if (Quiet & 0x100) {
printf(" Thread [%lx] Init CHILD %03u\n", tid, cpu);
printf(" Thread [%lx] Init CHILD %03u\n", (long) tid, cpu);
fflush(stdout);
}

Expand Down Expand Up @@ -547,7 +547,7 @@ static void *Child_Thread(void *arg)
RESET_Slice(Cpu->Slice);
EXIT:
if (Quiet & 0x100) {
printf(" Thread [%lx] %s CHILD %03u\n", tid,
printf(" Thread [%lx] %s CHILD %03u\n", (long) tid,
BITVAL(Cpu->OffLine, OS) ? "Offline" : "Shutdown",cpu);
fflush(stdout);
}
Expand Down

0 comments on commit e56a53d

Please sign in to comment.