From c6493aa81bca07610e774d3a93c813eb883eff28 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 8 Jan 2020 00:41:08 +0100 Subject: [PATCH] Fix samples_as_time_string formatting --- gtk2_ardour/utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 018ddd39d0..e122052799 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -775,7 +775,7 @@ ARDOUR_UI_UTILS::samples_as_time_string (samplecnt_t s, float rate, bool show_sa snprintf (buf, sizeof (buf), "0"); } else if (s < 1000 && show_samples) { /* 0 .. 999 spl */ - snprintf (buf, sizeof (buf), PRId64" spl", s); + snprintf (buf, sizeof (buf), "%" PRId64" spl", s); } else if (s < (rate / 1000.f)) { /* 0 .. 999 usec */ snprintf (buf, sizeof (buf), "%.0f \u00B5s", s * 1e+6f / rate);