intel/aubinator_error_decode: Fix structure decode data
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 6 Apr 2017 05:34:42 +0000 (22:34 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 6 Apr 2017 20:25:38 +0000 (13:25 -0700)
The call to gen_print_group should provide a pointer to the beginning
of the the structure data, not the start of the batch data.

Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator_error_decode.c

index 8a67f4f1698f9036c8441b35afbd591a6d48a50d..1bdab00a66334faefb59f2c42c5c04e1a426ad70 100644 (file)
@@ -239,7 +239,7 @@ static void decode(struct gen_spec *spec,
       printf("%s0x%08"PRIx64":  0x%08x:  %-80s%s\n",
              color, offset, p[0], gen_group_get_name(inst), reset_color);
 
-      gen_print_group(stdout, inst, offset, data,
+      gen_print_group(stdout, inst, offset, p,
                       option_color == COLOR_ALWAYS);
       length = gen_group_get_length(inst, p);
    }