commit 400521073cbff724e213159b380d42da5c1f7cde
parent e97396366c1460af4ce4714d075872d998d0e886
Author: Joris Vink <joris@coders.se>
Date: Thu, 29 Nov 2018 21:24:08 +0100
better format string
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/examples/video_stream/src/stream.c b/examples/video_stream/src/stream.c
@@ -20,6 +20,7 @@
#include <sys/queue.h>
#include <fcntl.h>
+#include <stdint.h>
#include <kore/kore.h>
#include <kore/http.h>
@@ -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) {