diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-05-24 03:45:32 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-05-24 03:45:32 +0000 |
commit | 11a9ea1c808ace46e01bfebf3d030aa328d81fb1 (patch) | |
tree | 178e5a3c1bad4da3436a89cf3d6e3d545bf45f9c /libs/surfaces | |
parent | 5dd853378c837abaa859e65c2200dd0a0df35778 (diff) |
fix up formatting of SMPTE time printing in tranzport control code
git-svn-id: svn://localhost/trunk/ardour2@526 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/tranzport/tranzport_control_protocol.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libs/surfaces/tranzport/tranzport_control_protocol.cc b/libs/surfaces/tranzport/tranzport_control_protocol.cc index 61c10440ff..4fad413d24 100644 --- a/libs/surfaces/tranzport/tranzport_control_protocol.cc +++ b/libs/surfaces/tranzport/tranzport_control_protocol.cc @@ -22,6 +22,8 @@ #include <algorithm> #include <cmath> +#define __STDC_FORMAT_MACROS +#include <inttypes.h> #include <float.h> #include <sys/time.h> #include <errno.h> @@ -327,19 +329,19 @@ TranzportControlProtocol::show_transport_time () session->smpte_time (where, smpte); if (smpte.negative) { - sprintf (buf, "-%02ld:", smpte.hours); + sprintf (buf, "-%02" PRIu32 ":", smpte.hours); } else { - sprintf (buf, " %02ld:", smpte.hours); + sprintf (buf, " %02" PRIu32 ":", smpte.hours); } print (1, 8, buf); - sprintf (buf, "%02ld:", smpte.minutes); + sprintf (buf, "%02" PRIu32 ":", smpte.minutes); print (1, 12, buf); - sprintf (buf, "%02ld:", smpte.seconds); + sprintf (buf, "%02" PRIu32 ":", smpte.seconds); print (1, 15, buf); - sprintf (buf, "%02ld", smpte.frames); + sprintf (buf, "%02" PRIu32, smpte.frames); print (1, 18, buf); last_where = where; |