From d8e9915b78d332b083503446f98ee8a269efac7e Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 20 Oct 2019 23:56:10 -0700 Subject: [PATCH] VAXStation3100M76: Move debug statement within loop to precisely display info Coverity identified an out of loop reference to the loop control variable that wasn't correct. --- VAX/vax4xx_ve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VAX/vax4xx_ve.c b/VAX/vax4xx_ve.c index fcdf526c..1ef77992 100644 --- a/VAX/vax4xx_ve.c +++ b/VAX/vax4xx_ve.c @@ -1192,8 +1192,8 @@ sim_debug (DBG_ROP, &ve_dev, "stream_data: xs = %d, xe = %d, ys = %d, ye = %d, d if (tbc_csr & TBC_CSR_STRDIR) { /* write */ while (tbc_fifo[0].count < FIFO_LEN) { ve_get_fifo (0, &data); - sim_debug (DBG_REG, &ve_dev, "buffer[%X] = %X\n", ((spx_stry * 1280) + spx_strx + dstpix), ((data >> (i << 3)) & 0xFF)); for (i = 0; i < 4; i++) { + sim_debug (DBG_REG, &ve_dev, "buffer[%X] = %X\n", ((spx_stry * 1280) + spx_strx + dstpix), ((data >> (i << 3)) & 0xFF)); ve_buf[((spx_stry * 1280) + spx_strx + dstpix)] = ((data >> (i << 3)) & 0xFF); spx_strx++; if (spx_stry < VE_YSIZE)