hardware/intel/libva
リビジョン | fef1ab33fc079fb44c8a964d6b79007358aaaf5c (tree) |
---|---|
日時 | 2016-05-24 15:57:25 |
作者 | Austin Yuan <shengquan.yuan@inte...> |
コミッター | Austin Yuan |
Fix missing parameter of vatrace DisplayAttribute print
[49270.199330] ==========va_TraceMaxNumDisplayAttributes
[49270.199334] max_display_attributes = 6
[49270.199362] num_attributes = 5
[49270.199365] attr_list[-1429804448] =
[49270.199367] typ = 0x00000000
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
@@ -4871,11 +4871,12 @@ void va_TraceQueryDisplayAttributes ( | ||
4871 | 4871 | |
4872 | 4872 | DPY2TRACE_VIRCTX(dpy); |
4873 | 4873 | |
4874 | + TRACE_FUNCNAME(idx); | |
4874 | 4875 | va_TraceMsg(trace_ctx, "\tnum_attributes = %d\n", *num_attributes); |
4875 | 4876 | |
4876 | 4877 | for (i=0; i<*num_attributes; i++) { |
4877 | - va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n"); | |
4878 | - va_TraceMsg(trace_ctx, "\t typ = 0x%08x\n", attr_list[i].type); | |
4878 | + va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n", i); | |
4879 | + va_TraceMsg(trace_ctx, "\t type = 0x%08x\n", attr_list[i].type); | |
4879 | 4880 | va_TraceMsg(trace_ctx, "\t min_value = %d\n", attr_list[i].min_value); |
4880 | 4881 | va_TraceMsg(trace_ctx, "\t max_value = %d\n", attr_list[i].max_value); |
4881 | 4882 | va_TraceMsg(trace_ctx, "\t value = %d\n", attr_list[i].value); |
@@ -4901,8 +4902,8 @@ static void va_TraceDisplayAttributes ( | ||
4901 | 4902 | va_TraceMsg(trace_ctx, "\tnum_attributes = %d\n", num_attributes); |
4902 | 4903 | |
4903 | 4904 | for (i=0; i<num_attributes; i++) { |
4904 | - va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n"); | |
4905 | - va_TraceMsg(trace_ctx, "\t typ = 0x%08x\n", attr_list[i].type); | |
4905 | + va_TraceMsg(trace_ctx, "\tattr_list[%d] =\n", i); | |
4906 | + va_TraceMsg(trace_ctx, "\t type = 0x%08x\n", attr_list[i].type); | |
4906 | 4907 | va_TraceMsg(trace_ctx, "\t min_value = %d\n", attr_list[i].min_value); |
4907 | 4908 | va_TraceMsg(trace_ctx, "\t max_value = %d\n", attr_list[i].max_value); |
4908 | 4909 | va_TraceMsg(trace_ctx, "\t value = %d\n", attr_list[i].value); |