summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonbum Ko <joonbum.ko@samsung.com>2020-02-12 11:20:16 +0900
committerJoonbum Ko <joonbum.ko@samsung.com>2020-02-12 11:20:16 +0900
commite71cbacbb526b441026f2d90f7b66a3bbe42ef97 (patch)
treea1285d5c07cc33f733a7f73e4227121d03eb804b
parente5f8240f658a1c56ea041abc095dc0c34853e032 (diff)
downloadmesa-tizen-19.0.0.tar.gz
mesa-tizen-19.0.0.tar.bz2
mesa-tizen-19.0.0.zip
Change-Id: I147537acac707d742e99f886682c8da136d48e90 Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r--src/gallium/auxiliary/renderonly/renderonly.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/renderonly/renderonly.c b/src/gallium/auxiliary/renderonly/renderonly.c
index 762d9c3f4ef..85c7a163d1d 100644
--- a/src/gallium/auxiliary/renderonly/renderonly.c
+++ b/src/gallium/auxiliary/renderonly/renderonly.c
@@ -65,8 +65,11 @@ renderonly_scanout_destroy(struct renderonly_scanout *scanout,
memset(&gem_close, 0, sizeof gem_close);
gem_close.handle = scanout->handle;
- if (drmIoctl(ro->kms_fd, DRM_IOCTL_GEM_CLOSE, &gem_close) < 0)
- fprintf(stderr, "Failed to close GEM: %s\n", strerror_r(errno));
+ if (drmIoctl(ro->kms_fd, DRM_IOCTL_GEM_CLOSE, &gem_close) < 0) {
+ char buf[128];
+ strerror_r(errno, buf, 128);
+ fprintf(stderr, "Failed to close GEM: %s\n", buf);
+ }
}
FREE(scanout);
}