Skip to content

Commit 04d873d

Browse files
authored
Merge pull request #58799 from kavon/debuglog-format-strings
correct format strings when building with `SWIFT_TASK_DEBUG_LOG` enabled
2 parents bf4663b + 22323fb commit 04d873d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/TaskStatus.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,15 +549,15 @@ SWIFT_CC(swift)
549549
JobPriority
550550
static swift_task_escalateImpl(AsyncTask *task, JobPriority newPriority) {
551551

552-
SWIFT_TASK_DEBUG_LOG("Escalating %p to %#x priority", task, newPriority);
552+
SWIFT_TASK_DEBUG_LOG("Escalating %p to %#zx priority", task, newPriority);
553553
auto oldStatus = task->_private()._status().load(std::memory_order_relaxed);
554554
auto newStatus = oldStatus;
555555

556556
while (true) {
557557
// Fast path: check that the stored priority is already at least
558558
// as high as the desired priority.
559559
if (oldStatus.getStoredPriority() >= newPriority) {
560-
SWIFT_TASK_DEBUG_LOG("Task is already at %x priority", oldStatus.getStoredPriority());
560+
SWIFT_TASK_DEBUG_LOG("Task is already at %#zx priority", oldStatus.getStoredPriority());
561561
return oldStatus.getStoredPriority();
562562
}
563563

0 commit comments

Comments
 (0)