Commit 6d485756 authored by Gwenole Beauchesne's avatar Gwenole Beauchesne Committed by Austin Yuan

Fix VA tracer to correctly dump array of bytes.

parent a7ec84e3
......@@ -195,14 +195,14 @@ static int va_TraceVABuffers(
)
{
int i;
char *p = pbuf;
unsigned char *p = pbuf;
unsigned int *pi = (unsigned int *)pbuf;
va_TraceMsg("***Buffer Data***");
for (i=0; i<size; i++) {
if ((i%16) == 0)
va_TraceMsg("\n0x%08x:", i);
va_TraceMsg("%08x ", p[i]);
va_TraceMsg(" %02x", p[i]);
}
va_TraceMsg("\n");
......@@ -1089,7 +1089,7 @@ int va_TraceEndPicture(
for (j=0; j<trace_width; j++) {
if ((j%16) == 0)
va_TraceMsg("\n0x%08x:", j + i*trace_width);
va_TraceMsg("%08x ", tmp[j]);
va_TraceMsg(" %02x", tmp[j]);
}
va_TraceMsg("\n");
......@@ -1104,7 +1104,7 @@ int va_TraceEndPicture(
for (j=0; j<trace_width; j++) {
if ((j%16) == 0)
va_TraceMsg("\n0x%08x:", j + i*trace_width);
va_TraceMsg("%08x ", tmp[j]);
va_TraceMsg(" %02x", tmp[j]);
}
va_TraceMsg("\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment