modetest: Print extra info if we fail to create a framebuffer
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>main
parent
3c8adda6e1
commit
680b9c4fa3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue