vatrace: refine VAEncPackedHeaderParameterBufferType format
authorAustin Yuan <shengquan.yuan@intel.com>
Wed, 8 May 2013 06:52:38 +0000 (14:52 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 19 Jun 2013 06:46:23 +0000 (14:46 +0800)
Change-Id: I1794a9c09a88b61d7abce970d7cb9a8f101162c6
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
(cherry picked from commit 4853e4a3a6cc5218e032a19d729096862db82bc6)

va/va_trace.c

index 3587350..7ad67fe 100644 (file)
@@ -1602,9 +1602,9 @@ static void va_TraceVAEncPackedHeaderParameterBufferType(
     if (!p)
         return;
     va_TraceMsg(idx, "VAEncPackedHeaderParameterBuffer\n");
-    va_TraceMsg(idx, "\ttype=%d = %d\n", p->type);
+    va_TraceMsg(idx, "\ttype = 0x%08x\n", p->type);
     va_TraceMsg(idx, "\tbit_length = %d\n", p->bit_length);
-    va_TraceMsg(idx, "\thas_emulation_bytes = %d = %d\n", p->has_emulation_bytes);
+    va_TraceMsg(idx, "\thas_emulation_bytes = %d\n", p->has_emulation_bytes);
     va_TraceMsg(idx, NULL);
 
     return;
@@ -2237,6 +2237,10 @@ static void va_TraceH264Buf(
         else
             va_TraceVAEncSliceParameterBufferH264(dpy, context, buffer, type, size, num_elements, pbuf);
         break;
+    case VAEncPackedHeaderParameterBufferType:
+        va_TraceVAEncPackedHeaderParameterBufferType(dpy, context, buffer, type, size, num_elements, pbuf);
+        break;
+        
     case VAEncMiscParameterBufferType:
         va_TraceVAEncMiscParameterBuffer(dpy, context, buffer, type, size, num_elements, pbuf);
         break;