diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-09-01 14:17:15 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-09-01 15:20:05 +0300 |
commit | 2fc74db3a222420b78c939d77eb9f354febcd57b (patch) | |
tree | f0bd81aa5b4208a40a6b12b5a4b2a4d44259eba0 /kms++/src | |
parent | 21113e024402057d878b4650ffba61b922552b86 (diff) |
Fix error prints
Diffstat (limited to 'kms++/src')
-rw-r--r-- | kms++/src/dumbframebuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kms++/src/dumbframebuffer.cpp b/kms++/src/dumbframebuffer.cpp index d2f5db2..d22b9f3 100644 --- a/kms++/src/dumbframebuffer.cpp +++ b/kms++/src/dumbframebuffer.cpp @@ -54,7 +54,7 @@ void DumbFramebuffer::Create() creq.bpp = pi.bitspp; r = drmIoctl(card().fd(), DRM_IOCTL_MODE_CREATE_DUMB, &creq); if (r) - throw invalid_argument(string("DRM_IOCTL_MODE_CREATE_DUMB failed") + strerror(errno)); + throw invalid_argument(string("DRM_IOCTL_MODE_CREATE_DUMB failed: ") + strerror(errno)); plane.handle = creq.handle; plane.stride = creq.pitch; @@ -110,7 +110,7 @@ uint8_t* DumbFramebuffer::map(unsigned plane) mreq.handle = p.handle; int r = drmIoctl(card().fd(), DRM_IOCTL_MODE_MAP_DUMB, &mreq); if (r) - throw invalid_argument(string("DRM_IOCTL_MODE_MAP_DUMB failed") + strerror(errno)); + throw invalid_argument(string("DRM_IOCTL_MODE_MAP_DUMB failed: ") + strerror(errno)); /* perform actual memory mapping */ p.map = (uint8_t *)mmap(0, p.size, PROT_READ | PROT_WRITE, MAP_SHARED, |