diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 167169ba..1a525572 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -3190,7 +3190,8 @@ void _kgem_submit(struct kgem *kgem) if (DEBUG_SYNC) { int fd = open("/tmp/batchbuffer", O_WRONLY | O_CREAT | O_APPEND, 0666); if (fd != -1) { - write(fd, kgem->batch, batch_end*sizeof(uint32_t)); + int ignored = write(fd, kgem->batch, batch_end*sizeof(uint32_t)); + assert(ignored == batch_end*sizeof(uint32_t)); close(fd); }