common: include newline in debug logger
So it isn't necessary to add it each time. Signed-off-by: Max Regan <mgregan2@gmail.com>
This commit is contained in:
@@ -47,6 +47,7 @@ void downcase(char *str);
|
||||
__FILE__, __LINE__, \
|
||||
__func__); \
|
||||
printf(__VA_ARGS__); \
|
||||
printf("\n"); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@ int gbasm_assemble(char *program, struct emitter *emitter)
|
||||
return num_insts;
|
||||
}
|
||||
|
||||
DEBUG_LOG("parsed %d instructions\n", num_insts);
|
||||
DEBUG_LOG("parsed %d instructions", num_insts);
|
||||
|
||||
for (int i = 0; i < num_insts; i++) {
|
||||
DEBUG_LOG("emitting %s\n", insts[i].opcode);
|
||||
DEBUG_LOG("emitting %s", insts[i].opcode);
|
||||
const struct gbasm_op_info *info = gbasm_get_opcode_info(insts[i].opcode);
|
||||
if (info == NULL) {
|
||||
gbasm_unknown_opcode_error(&insts[i]);
|
||||
|
||||
@@ -104,7 +104,7 @@ int gbasm_parse_buffer(char *buffer,
|
||||
gbasm_parse_tokens(&insts[inst_num],
|
||||
(const char **)line_tokens,
|
||||
num_tokens);
|
||||
DEBUG_LOG("token: %s\n", insts[inst_num].opcode);
|
||||
DEBUG_LOG("token: %s", insts[inst_num].opcode);
|
||||
insts[inst_num].line_num = line_num;
|
||||
|
||||
/* TODO: Fill these out */
|
||||
|
||||
Reference in New Issue
Block a user