summaryrefslogtreecommitdiff
path: root/gtk2_ardour/utils.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-01-08 00:41:08 +0100
committerRobin Gareus <robin@gareus.org>2020-01-08 00:41:08 +0100
commitc6493aa81bca07610e774d3a93c813eb883eff28 (patch)
tree8ac3f11660a89e243fe9f907920e946397bc80f1 /gtk2_ardour/utils.cc
parent9091838b82f803ae35ec7faebdac39d0fbd6b606 (diff)
Fix samples_as_time_string formatting
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r--gtk2_ardour/utils.cc2
1 files changed, 1 insertions, 1 deletions
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);