intel/tools/disasm: correctly observe FILE *out parameter

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>
This commit is contained in:
Kevin Rogovin 2017-09-25 13:34:11 +03:00 committed by Kenneth Graunke
parent 75d10e4c84
commit e640b3fe13
1 changed files with 2 additions and 2 deletions

View 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);
}
}