hardware/intel/libva
Revision | 6d48575630506e4bcd68142fb5737950bb5277ca (tree) |
---|---|
Time | 2010-06-02 18:23:22 |
Author | Gwenole Beauchesne <gbeauchesne@spli...> |
Commiter | Austin Yuan |
Fix VA tracer to correctly dump array of bytes.
@@ -195,14 +195,14 @@ static int va_TraceVABuffers( | ||
195 | 195 | ) |
196 | 196 | { |
197 | 197 | int i; |
198 | - char *p = pbuf; | |
198 | + unsigned char *p = pbuf; | |
199 | 199 | unsigned int *pi = (unsigned int *)pbuf; |
200 | 200 | |
201 | 201 | va_TraceMsg("***Buffer Data***"); |
202 | 202 | for (i=0; i<size; i++) { |
203 | 203 | if ((i%16) == 0) |
204 | 204 | va_TraceMsg("\n0x%08x:", i); |
205 | - va_TraceMsg("%08x ", p[i]); | |
205 | + va_TraceMsg(" %02x", p[i]); | |
206 | 206 | } |
207 | 207 | |
208 | 208 | va_TraceMsg("\n"); |
@@ -1089,7 +1089,7 @@ int va_TraceEndPicture( | ||
1089 | 1089 | for (j=0; j<trace_width; j++) { |
1090 | 1090 | if ((j%16) == 0) |
1091 | 1091 | va_TraceMsg("\n0x%08x:", j + i*trace_width); |
1092 | - va_TraceMsg("%08x ", tmp[j]); | |
1092 | + va_TraceMsg(" %02x", tmp[j]); | |
1093 | 1093 | } |
1094 | 1094 | |
1095 | 1095 | va_TraceMsg("\n"); |
@@ -1104,7 +1104,7 @@ int va_TraceEndPicture( | ||
1104 | 1104 | for (j=0; j<trace_width; j++) { |
1105 | 1105 | if ((j%16) == 0) |
1106 | 1106 | va_TraceMsg("\n0x%08x:", j + i*trace_width); |
1107 | - va_TraceMsg("%08x ", tmp[j]); | |
1107 | + va_TraceMsg(" %02x", tmp[j]); | |
1108 | 1108 | } |
1109 | 1109 | |
1110 | 1110 | va_TraceMsg("\n"); |