intel/tools/disasm: correctly observe FILE *out parameter
authorKevin Rogovin <kevin.rogovin@intel.com>
Mon, 25 Sep 2017 10:34:11 +0000 (13:34 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Oct 2017 17:43:48 +0000 (10:43 -0700)
Signed-off-by: Kevin Rogovin <kevin.rogovin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/tools/disasm.c

index 361885b7989622e047297e01733ed88892f45ee5..251acd313dc8e5e4162cf6f1b1a5dde4da2d4c9d 100644 (file)
@@ -96,10 +96,10 @@ gen_disasm_disassemble(struct gen_disasm *disasm, void *assembly,
       int start_offset = annotation[i].offset;
       int end_offset = annotation[i + 1].offset;
 
-      brw_disassemble(devinfo, assembly, start_offset, end_offset, stdout);
+      brw_disassemble(devinfo, assembly, start_offset, end_offset, out);
 
       if (annotation[i].error) {
-         fputs(annotation[i].error, stdout);
+         fputs(annotation[i].error, out);
       }
    }