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.
This commit is contained in:
Mark Pizzolato 2019-10-20 23:56:10 -07:00
parent 0dfe18cd94
commit d8e9915b78

View file

@ -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)