summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElaine Wang <elaine.wang@intel.com>2013-05-10 18:58:47 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2013-05-09 11:22:26 +0800
commit2292299fe00036eb6055a84846f63f36cbae27d9 (patch)
tree44269f3ac4bd109b5e869be1e10b7e383c2cb0d2
parent4853e4a3a6cc5218e032a19d729096862db82bc6 (diff)
vatrace: refine the format of buf data dump
Signed-off-by: Elaine Wang <elaine.wang@intel.com>
-rw-r--r--va/va_trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/va/va_trace.c b/va/va_trace.c
index 04f84ea..fba3213 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -674,13 +674,13 @@ static void va_TraceVABuffers(
unsigned char check_sum = 0;
DPY2INDEX(dpy);
- va_TraceMsg(idx, "%s\n", buffer_type_to_string(type));
+ va_TraceMsg(idx, "%s", buffer_type_to_string(type));
for (i=0; i<size; i++) {
unsigned char value = p[i];
if ((trace_flag & VA_TRACE_FLAG_BUFDATA) && ((i%16) == 0))
- va_TraceMsg(idx, "\n0x%08x:", i);
+ va_TraceMsg(idx, "\n\t0x%08x:", i);
if (trace_flag & VA_TRACE_FLAG_BUFDATA)
va_TraceMsg(idx, " %02x", value);
@@ -688,7 +688,7 @@ static void va_TraceVABuffers(
check_sum ^= value;
}
- va_TraceMsg(idx, "\tchecksum = 0x%02x\n", check_sum & 0xff);
+ va_TraceMsg(idx, "\n\tchecksum = 0x%02x\n", check_sum & 0xff);
va_TraceMsg(idx, NULL);
return;