• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revision6d48575630506e4bcd68142fb5737950bb5277ca (tree)
Time2010-06-02 18:23:22
AuthorGwenole Beauchesne <gbeauchesne@spli...>
CommiterAustin Yuan

Log Message

Fix VA tracer to correctly dump array of bytes.

Change Summary

Incremental Difference

--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -195,14 +195,14 @@ static int va_TraceVABuffers(
195195 )
196196 {
197197 int i;
198- char *p = pbuf;
198+ unsigned char *p = pbuf;
199199 unsigned int *pi = (unsigned int *)pbuf;
200200
201201 va_TraceMsg("***Buffer Data***");
202202 for (i=0; i<size; i++) {
203203 if ((i%16) == 0)
204204 va_TraceMsg("\n0x%08x:", i);
205- va_TraceMsg("%08x ", p[i]);
205+ va_TraceMsg(" %02x", p[i]);
206206 }
207207
208208 va_TraceMsg("\n");
@@ -1089,7 +1089,7 @@ int va_TraceEndPicture(
10891089 for (j=0; j<trace_width; j++) {
10901090 if ((j%16) == 0)
10911091 va_TraceMsg("\n0x%08x:", j + i*trace_width);
1092- va_TraceMsg("%08x ", tmp[j]);
1092+ va_TraceMsg(" %02x", tmp[j]);
10931093 }
10941094
10951095 va_TraceMsg("\n");
@@ -1104,7 +1104,7 @@ int va_TraceEndPicture(
11041104 for (j=0; j<trace_width; j++) {
11051105 if ((j%16) == 0)
11061106 va_TraceMsg("\n0x%08x:", j + i*trace_width);
1107- va_TraceMsg("%08x ", tmp[j]);
1107+ va_TraceMsg(" %02x", tmp[j]);
11081108 }
11091109
11101110 va_TraceMsg("\n");