pan/midgard: Fix missing prefixes
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 3 Feb 2020 20:12:24 +0000 (15:12 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sun, 16 Feb 2020 14:16:46 +0000 (09:16 -0500)
I was wondering where those were going... :)

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fixes: c1952779d68 ("pan/decode: Dump to a file")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>

src/panfrost/midgard/disassemble.c

index a0640d66e8cd27dba40826a20858100aa8812a0e..8f116aa5a458f5b773d74a98b13e01750315bd3a 100644 (file)
@@ -157,7 +157,7 @@ print_reg(FILE *fp, unsigned reg, unsigned bits)
         char prefix = prefix_for_bits(bits);
 
         if (prefix)
-                putchar(prefix);
+                fputc(prefix, fp);
 
         fprintf(fp, "r%u", reg);
 }