From e56a53d6c87fd24f265783189c0ce4ee6f032251 Mon Sep 17 00:00:00 2001 From: CyrIng Date: Sun, 4 Feb 2024 10:34:04 +0100 Subject: [PATCH] [CR][AArch64] Backport the format warning fix --- aarch64/corefreqd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aarch64/corefreqd.c b/aarch64/corefreqd.c index 89df6d36..ced7eceb 100644 --- a/aarch64/corefreqd.c +++ b/aarch64/corefreqd.c @@ -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); @@ -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); @@ -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); } @@ -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); }