modetest: Print extra info if we fail to create a framebuffer

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
main
Jakob Bornecrantz 2011-10-19 13:32:26 +02:00
parent 3c8adda6e1
commit 680b9c4fa3
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}