mediatek/rockchip: Use PRIu64 to print uint64_t variables
Required to build for arm64 on mediatek, and let's fix the rockchip one, while we're at it. BUG=b:140228960 TEST=emerge-kevin-arc64 -av arc-cros-gralloc TEST=emerge-kukui -av arc-cros-gralloc (with ARC++ 64-bit) Change-Id: I8e04355a4d247b44ac86963331be72495655d321 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1775949 Tested-by: Nicolas Boichat <drinkcat@chromium.org> Auto-Submit: Nicolas Boichat <drinkcat@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Commit-Queue: Nicolas Boichat <drinkcat@chromium.org>
This commit is contained in:
parent
3d856025f8
commit
d7c83386cc
2 changed files with 5 additions and 3 deletions
|
|
@ -9,6 +9,7 @@
|
|||
// clang-format off
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
#include <poll.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
@ -116,7 +117,7 @@ static int mediatek_bo_create_with_modifiers(struct bo *bo, uint32_t width, uint
|
|||
|
||||
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_MTK_GEM_CREATE, &gem_create);
|
||||
if (ret) {
|
||||
drv_log("DRM_IOCTL_MTK_GEM_CREATE failed (size=%llu)\n", gem_create.size);
|
||||
drv_log("DRM_IOCTL_MTK_GEM_CREATE failed (size=%" PRIu64 ")\n", gem_create.size);
|
||||
return -errno;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
#ifdef DRV_ROCKCHIP
|
||||
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <rockchip_drm.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
@ -212,8 +213,8 @@ static int rockchip_bo_create_with_modifiers(struct bo *bo, uint32_t width, uint
|
|||
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_ROCKCHIP_GEM_CREATE, &gem_create);
|
||||
|
||||
if (ret) {
|
||||
drv_log("DRM_IOCTL_ROCKCHIP_GEM_CREATE failed (size=%llu)\n",
|
||||
(unsigned long long)gem_create.size);
|
||||
drv_log("DRM_IOCTL_ROCKCHIP_GEM_CREATE failed (size=%" PRIu64 ")\n",
|
||||
gem_create.size);
|
||||
return -errno;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue