summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2011-10-19 13:32:26 +0200
committerJakob Bornecrantz <jakob@vmware.com>2011-10-19 13:35:07 +0200
commit680b9c4fa3dfb329bd74ec08c17cfc876ea2fc5b (patch)
tree9ed5ce421bfa4b84da26d1865aa3dd0974474dbf
parent3c8adda6e1e6b0471b3d70a63d795622bbeb1580 (diff)
downloadlibdrm-680b9c4fa3dfb329bd74ec08c17cfc876ea2fc5b.tar.gz
libdrm-680b9c4fa3dfb329bd74ec08c17cfc876ea2fc5b.tar.bz2
libdrm-680b9c4fa3dfb329bd74ec08c17cfc876ea2fc5b.zip
modetest: Print extra info if we fail to create a framebuffer
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
-rw-r--r--tests/modetest/modetest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 35045c87..f65a033b 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -568,7 +568,8 @@ set_mode(struct connector *c, int count, int page_flip)
kms_bo_get_prop(bo, KMS_HANDLE, &handle);
ret = drmModeAddFB(fd, width, height, 24, 32, stride, handle, &fb_id);
if (ret) {
- fprintf(stderr, "failed to add fb: %s\n", strerror(errno));
+ fprintf(stderr, "failed to add fb (%ux%u): %s\n",
+ width, height, strerror(errno));
return;
}