Mesa (master): intel/tools/disasm: correctly observe FILE *out parameter

Kenneth Graunke kwg at kemper.freedesktop.org
Thu Oct 26 18:16:24 UTC 2017


Module: Mesa
Branch: master
Commit: e640b3fe139d29d01d5dc89cfbd2c06756b1d8d8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e640b3fe139d29d01d5dc89cfbd2c06756b1d8d8

Author: Kevin Rogovin <kevin.rogovin at intel.com>
Date:   Mon Sep 25 13:34:11 2017 +0300

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

Signed-off-by: Kevin Rogovin <kevin.rogovin at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/intel/tools/disasm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/tools/disasm.c b/src/intel/tools/disasm.c
index 361885b798..251acd313d 100644
--- a/src/intel/tools/disasm.c
+++ b/src/intel/tools/disasm.c
@@ -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);
       }
    }
 




More information about the mesa-commit mailing list