vc4: Fix missing newline for load immediate instruction disasm.
authorEric Anholt <eric@anholt.net>
Thu, 11 Dec 2014 00:20:36 +0000 (16:20 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 18 Dec 2014 03:05:52 +0000 (19:05 -0800)
src/gallium/drivers/vc4/vc4_qpu_disasm.c

index 2511fcfc937b69e568668f8893ca613984978647..b87205a011eef676c96a9c85edf3b670e90f166a 100644 (file)
@@ -390,7 +390,7 @@ vc4_qpu_disasm(const uint64_t *instructions, int num_instructions)
 
                 switch (sig) {
                 case QPU_SIG_BRANCH:
-                        fprintf(stderr, "branch\n");
+                        fprintf(stderr, "branch");
                         break;
                 case QPU_SIG_LOAD_IMM:
                         print_load_imm(inst);
@@ -401,10 +401,10 @@ vc4_qpu_disasm(const uint64_t *instructions, int num_instructions)
                         print_add_op(inst);
                         fprintf(stderr, " ; ");
                         print_mul_op(inst);
-
-                        if (num_instructions != 1)
-                                fprintf(stderr, "\n");
                         break;
                 }
+
+                if (num_instructions != 1)
+                        fprintf(stderr, "\n");
         }
 }