From: Pauli Nieminen Date: Wed, 26 Aug 2009 21:07:05 +0000 (+0300) Subject: radeon: Fix loop en condition so debug output doesn't flood meaningless values. X-Git-Tag: 062012170305~16784^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47d4b9ff70c82956a77e8ea7a6abccaa0a9f9083;p=profile%2Fivi%2Fmesa.git radeon: Fix loop en condition so debug output doesn't flood meaningless values. --- diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c index 9b301cd..0894372 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common.c +++ b/src/mesa/drivers/dri/radeon/radeon_common.c @@ -952,7 +952,7 @@ static void radeon_print_state_atom(radeonContextPtr radeon, struct radeon_state if (DEBUG_CMDBUF > 1 && RADEON_DEBUG & DEBUG_VERBOSE) { if (dwords > state->cmd_size) dwords = state->cmd_size; - for (i = 0; i < state->cmd_size;) { + for (i = 0; i < dwords;) { packet0 = state->cmd[i]; reg = (packet0 & 0x1FFF) << 2; count = ((packet0 & 0x3FFF0000) >> 16) + 1;