about summary refs log tree commit diff
path: root/src/rt/rust_log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rt/rust_log.cpp')
-rw-r--r--src/rt/rust_log.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rt/rust_log.cpp b/src/rt/rust_log.cpp
index 6fb1853e3bc..01e92e1f23d 100644
--- a/src/rt/rust_log.cpp
+++ b/src/rt/rust_log.cpp
@@ -269,8 +269,9 @@ void update_log_settings(void* crate_map, char* settings) {
                      n_dirs, &n_matches);
 
     if (n_matches < n_dirs) {
-        printf("warning: got %u RUST_LOG specs, enabled %u flags.",
-               n_dirs, n_matches);
+        printf("warning: got %" PRIdPTR " RUST_LOG specs, "
+               "enabled %" PRIdPTR " flags.",
+               (uintptr_t)n_dirs, (uintptr_t)n_matches);
     }
 
     free(buffer);