minigbm: fix long lines missed by clang-format
We have 100-lines to work with now.
BUG=none
TEST=compiles
Change-Id: I08f41a42d8841ac82c5a6defbcbc712722179fce
Reviewed-on: https://chromium-review.googlesource.com/457286
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
diff --git a/cros_gralloc/cros_alloc_device.cc b/cros_gralloc/cros_alloc_device.cc
index 6477c0d..4ee1897 100644
--- a/cros_gralloc/cros_alloc_device.cc
+++ b/cros_gralloc/cros_alloc_device.cc
@@ -26,9 +26,8 @@
}
if (!combo) {
- cros_gralloc_error("Unsupported combination -- HAL format: %u, "
- "HAL flags: %u, drv_format: %4.4s, "
- "drv_flags: %llu",
+ cros_gralloc_error("Unsupported combination -- HAL format: %u, HAL flags: %u, "
+ "drv_format: %4.4s, drv_flags: %llu",
format, usage, reinterpret_cast<char *>(&drv_format), drv_usage);
return NULL;
}
diff --git a/cros_gralloc/cros_gralloc_module.cc b/cros_gralloc/cros_gralloc_module.cc
index 0101342..c3d0e65 100644
--- a/cros_gralloc/cros_gralloc_module.cc
+++ b/cros_gralloc/cros_gralloc_module.cc
@@ -165,8 +165,7 @@
}
if ((hnd->droid_format == HAL_PIXEL_FORMAT_YCbCr_420_888)) {
- cros_gralloc_error("HAL_PIXEL_FORMAT_YCbCr_*_888 format not "
- "compatible.");
+ cros_gralloc_error("HAL_PIXEL_FORMAT_YCbCr_*_888 format not compatible.");
return CROS_GRALLOC_ERROR_BAD_HANDLE;
}
diff --git a/exynos.c b/exynos.c
index a18261e..7ff46e5 100644
--- a/exynos.c
+++ b/exynos.c
@@ -65,8 +65,7 @@
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_EXYNOS_GEM_CREATE, &gem_create);
if (ret) {
- fprintf(stderr, "drv: DRM_IOCTL_EXYNOS_GEM_CREATE failed "
- "(size=%zu)\n",
+ fprintf(stderr, "drv: DRM_IOCTL_EXYNOS_GEM_CREATE failed (size=%zu)\n",
size);
goto cleanup_planes;
}
diff --git a/helpers.c b/helpers.c
index 3022a08..e9d2836 100644
--- a/helpers.c
+++ b/helpers.c
@@ -202,8 +202,7 @@
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_dumb);
if (ret) {
- fprintf(stderr, "drv: DRM_IOCTL_MODE_DESTROY_DUMB failed "
- "(handle=%x)\n",
+ fprintf(stderr, "drv: DRM_IOCTL_MODE_DESTROY_DUMB failed (handle=%x)\n",
bo->handles[0].u32);
return ret;
}
@@ -230,8 +229,7 @@
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_GEM_CLOSE, &gem_close);
if (ret) {
- fprintf(stderr, "drv: DRM_IOCTL_GEM_CLOSE failed "
- "(handle=%x) error %d\n",
+ fprintf(stderr, "drv: DRM_IOCTL_GEM_CLOSE failed (handle=%x) error %d\n",
bo->handles[plane].u32, ret);
error = ret;
}
@@ -253,8 +251,7 @@
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_PRIME_FD_TO_HANDLE, &prime_handle);
if (ret) {
- fprintf(stderr, "drv: DRM_IOCTL_PRIME_FD_TO_HANDLE "
- "failed (fd=%u)\n",
+ fprintf(stderr, "drv: DRM_IOCTL_PRIME_FD_TO_HANDLE failed (fd=%u)\n",
prime_handle.fd);
/*
diff --git a/i915.c b/i915.c
index b7f591c..b1854fb 100644
--- a/i915.c
+++ b/i915.c
@@ -290,8 +290,7 @@
ret = drm_intel_bo_set_tiling(i915_bo->ibos[0], &bo->tiling, bo->strides[0]);
if (ret || bo->tiling != tiling_mode) {
- fprintf(stderr, "drv: drm_intel_gem_bo_set_tiling failed "
- "errno=%x, stride=%x\n",
+ fprintf(stderr, "drv: drm_intel_gem_bo_set_tiling failed errno=%x, stride=%x\n",
errno, bo->strides[0]);
/* Calls i915 bo destroy. */
bo->drv->backend->bo_destroy(bo);
diff --git a/mediatek.c b/mediatek.c
index e018b36..db3c9fa 100644
--- a/mediatek.c
+++ b/mediatek.c
@@ -49,8 +49,7 @@
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_MTK_GEM_CREATE, &gem_create);
if (ret) {
- fprintf(stderr, "drv: DRM_IOCTL_MTK_GEM_CREATE failed "
- "(size=%llu)\n",
+ fprintf(stderr, "drv: DRM_IOCTL_MTK_GEM_CREATE failed (size=%llu)\n",
gem_create.size);
return ret;
}
diff --git a/vc4.c b/vc4.c
index 9103b8a..a120f3d 100644
--- a/vc4.c
+++ b/vc4.c
@@ -45,8 +45,7 @@
ret = drmIoctl(bo->drv->fd, DRM_IOCTL_VC4_CREATE_BO, &bo_create);
if (ret) {
- fprintf(stderr, "drv: DRM_IOCTL_VC4_GEM_CREATE failed "
- "(size=%zu)\n",
+ fprintf(stderr, "drv: DRM_IOCTL_VC4_GEM_CREATE failed (size=%zu)\n",
bo->total_size);
return ret;
}