From 9dd549508a7fadba8fab89501514653dc439c032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= Date: Tue, 4 Jun 2024 10:01:24 +0200 Subject: [PATCH] Avoid warning about format string in 32-bit build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: format ‘%ld’ expects argument of type ‘long int’... --- src/StdioMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StdioMonitor.cc b/src/StdioMonitor.cc index b4335f43098..64cba35830f 100644 --- a/src/StdioMonitor.cc +++ b/src/StdioMonitor.cc @@ -13,7 +13,7 @@ namespace rr { Switchable StdioMonitor::will_write(Task* t) { if (t->session().mark_stdio()) { char buf[256]; - snprintf(buf, sizeof(buf) - 1, "[rr %d %ld]", t->tgid(), t->trace_time()); + snprintf(buf, sizeof(buf) - 1, "[rr %d %" PRId64 "]", t->tgid(), t->trace_time()); ssize_t len = strlen(buf); if (write(original_fd, buf, len) != len) { ASSERT(t, false) << "Couldn't write to " << original_fd;