summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-01-30 16:01:09 +0100
committerMartin Lucina <mato@kotelna.sk>2010-01-30 16:01:09 +0100
commitd44fe8406cf5e4bce66a0423c5292e9af1ed0067 (patch)
treecf3251efa8e86ad84cc10699e6bd2dd59dd0ac1d
parent3314f2e66721cbf0856591e7e8142f61f79c7771 (diff)
Try to fix printf warnings with uint64_t
-rw-r--r--zmq-camera.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zmq-camera.c b/zmq-camera.c
index c3e59c7..1dd7ce3 100644
--- a/zmq-camera.c
+++ b/zmq-camera.c
@@ -412,9 +412,9 @@ int main (int argc, char *argv [])
/* If the timer fired, recalculate bandwidth and update window title */
if (alarm_expired) {
double received_mbps = (double)received_bps * 8 / (1<<20);
- snprintf (window_title, 80, "%s (%lu fps, %.2lf Mbps)",
+ snprintf (window_title, 80, "%s (%llu fps, %.2lf Mbps)",
is_sender ? local_camera : endpoint,
- received_fps, received_mbps);
+ (long long unsigned int) received_fps, received_mbps);
SDL_WM_SetCaption (window_title, window_title);
received_fps = received_bps = 0;
alarm_expired = 0;