diff options
author | Joonbum Ko <joonbum.ko@samsung.com> | 2020-02-12 11:20:16 +0900 |
---|---|---|
committer | Joonbum Ko <joonbum.ko@samsung.com> | 2020-02-12 11:20:16 +0900 |
commit | e71cbacbb526b441026f2d90f7b66a3bbe42ef97 (patch) | |
tree | a1285d5c07cc33f733a7f73e4227121d03eb804b | |
parent | e5f8240f658a1c56ea041abc095dc0c34853e032 (diff) | |
download | mesa-tizen-19.0.0.tar.gz mesa-tizen-19.0.0.tar.bz2 mesa-tizen-19.0.0.zip |
Fixed wrong use strerror_rsubmit/tizen/20200212.041541accepted/tizen/unified/20200212.125725tizen-19.0.0
Change-Id: I147537acac707d742e99f886682c8da136d48e90
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r-- | src/gallium/auxiliary/renderonly/renderonly.c | 7 |
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); } |