From 400521073cbff724e213159b380d42da5c1f7cde Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Thu, 29 Nov 2018 21:24:08 +0100 Subject: [PATCH] better format string --- examples/video_stream/src/stream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/video_stream/src/stream.c b/examples/video_stream/src/stream.c index 934e7fb..6944d25 100755 --- a/examples/video_stream/src/stream.c +++ b/examples/video_stream/src/stream.c @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -83,8 +84,8 @@ video_stream(struct http_request *req) return (KORE_RESULT_OK); } - kore_log(LOG_NOTICE, "%p: opened %s (%s) for streaming (%lld ref:%d)", - (void *)req->owner, v->path, ctype, v->size, v->ref); + kore_log(LOG_NOTICE, "%p: opened %s (%s) for streaming (%jd ref:%d)", + (void *)req->owner, v->path, ctype, (intmax_t)v->size, v->ref); if (http_request_header(req, "range", &header)) { if ((bytes = strchr(header, '=')) == NULL) {