fb_accel_sti: add verbose error reporting to blit2FB

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9695798213
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-02-25 (Sun, 25 Feb 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2018-02-25 21:36:45 +01:00
committed by vanhofen
parent a79a2de914
commit 9a939fa28a

View File

@@ -331,8 +331,14 @@ void CFbAccelSTi::blit2FB(void *fbbuff, uint32_t width, uint32_t height, uint32_
// icons are so small that they will still be in cache
msync(backbuffer, backbuf_sz, MS_SYNC);
if (ioctl(fd, STMFBIO_BLT_EXTERN, &blt_data) < 0)
if (ioctl(fd, STMFBIO_BLT_EXTERN, &blt_data) < 0) {
perror(LOGTAG "blit2FB STMFBIO_BLT_EXTERN");
fprintf(stderr, "fbbuff %p tmp %p back %p width %u height %u xoff %u yoff %u xp %u yp %u dw %d dh %d\n",
fbbuff, tmpbuff, backbuffer, width, height, xoff, yoff, xp, yp, dw, dh);
fprintf(stderr, "left: %d top: %d right: %d bottom: %d off: %ld pitch: %ld mem: %ld\n",
blt_data.src_left, blt_data.src_top, blt_data.src_right, blt_data.src_bottom,
blt_data.srcOffset, blt_data.srcPitch, blt_data.srcMemSize);
}
return;
}