]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix format string mismatch for `uint64_t` in `_remote_debugging/threads.c` (#148360) 148367/head
authorStan Ulbrych <stan@python.org>
Sat, 11 Apr 2026 08:10:02 +0000 (09:10 +0100)
committerGitHub <noreply@github.com>
Sat, 11 Apr 2026 08:10:02 +0000 (09:10 +0100)
Modules/_remote_debugging/threads.c

index a38bb945169a776cefc2473d71b16e76c17cbe16..07f8148d7c941a334f672f589714ce49a11b2234 100644 (file)
@@ -192,7 +192,7 @@ get_thread_status(RemoteUnwinderObject *unwinder, uint64_t tid, uint64_t pthread
     char stat_path[256];
     char buffer[2048] = "";
 
-    snprintf(stat_path, sizeof(stat_path), "/proc/%d/task/%lu/stat", unwinder->handle.pid, tid);
+    snprintf(stat_path, sizeof(stat_path), "/proc/%d/task/%" PRIu64 "/stat", unwinder->handle.pid, tid);
 
     int fd = open(stat_path, O_RDONLY);
     if (fd == -1) {