diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2017-05-02 21:17:54 -0700 |
---|---|---|
committer | Ben Widawsky <ben@bwidawsk.net> | 2017-05-02 21:19:50 -0700 |
commit | 592a67706c22cedd45057a6cffa47612458049fe (patch) | |
tree | 7f78a4e0030b2e954803ca6e73e441fbfaead21f /drm-common.c | |
parent | ac7e6c720873e36e3700f927073d528793bf6308 (diff) | |
download | kmscube-592a67706c22cedd45057a6cffa47612458049fe.tar.gz |
drm-atomic: Fix print type for modifiers
Seems work better than
commit 88858d32f2aa86d93397ed68641653cb34d8610b
Author: Lucas Stach <l.stach@pengutronix.de>
Date: Fri Apr 28 18:18:52 2017 +0200
common: use %llx to print modifier
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'drm-common.c')
-rw-r--r-- | drm-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drm-common.c b/drm-common.c index fb4ec7f..4b55745 100644 --- a/drm-common.c +++ b/drm-common.c @@ -22,6 +22,7 @@ */ #include <errno.h> +#include <inttypes.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> @@ -73,7 +74,7 @@ struct drm_fb * drm_fb_get_from_bo(struct gbm_bo *bo) if (modifiers[0]) { flags = DRM_MODE_FB_MODIFIERS; - printf("Using modifier %llx\n", modifiers[0]); + printf("Using modifier %" PRIx64 "\n", modifiers[0]); } ret = drmModeAddFB2WithModifiers(drm_fd, width, height, |