]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
using %i for instruction opcode output is a little more consistent with the above...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 16:27:49 +0000 (18:27 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 16:27:49 +0000 (18:27 +0200)
code.c

diff --git a/code.c b/code.c
index 56d059ffbe49985b4c181745741a31b13689456d..717560413f8c69427d8dbc0b6b1d12bbb907cbcc 100644 (file)
--- a/code.c
+++ b/code.c
@@ -261,7 +261,7 @@ bool code_write(const char *filename) {
             util_debug("GEN", "    CODE:\n");
             for (;;) {
                 if (code_statements_data[j].opcode != AINSTR_END)
-                    util_debug("GEN", "        %s {0x%05x,0x%05x,0x%05x}\n",
+                    util_debug("GEN", "        %-12s {% 5i,% 5i,% 5i}\n",
                         asm_instr[code_statements_data[j].opcode].m,
                         code_statements_data[j].o1.s1,
                         code_statements_data[j].o2.s1,