summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElaine Wang <elaine.wang@intel.com>2013-05-10 18:58:47 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-06-19 14:46:35 +0800
commit213411857b4d90c592310152f6380b8446d30b68 (patch)
treebf701d8c7fd2a8ac5219d0a63ff1e6493a4f2851
parent4c33e3c090a24fef1fb7fe2e8f801240b10befe3 (diff)
vatrace: refine the format of buf data dump
Signed-off-by: Elaine Wang <elaine.wang@intel.com> (cherry picked from commit 2292299fe00036eb6055a84846f63f36cbae27d9)
-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 7ad67fe..fe97d4e 100644
--- a/va/va_trace.c
+++ b/va/va_trace.c
@@ -673,13 +673,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);
@@ -687,7 +687,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;