From da094de3da3362166d667b78d3bec7890ef61fb9 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 8 Jan 2015 01:03:06 -0800 Subject: [PATCH] Debugger: Fix binary print putting spaces between digits --- CHANGES | 1 + src/debugger/cli-debugger.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index f019e1659..9e8ded637 100644 --- a/CHANGES +++ b/CHANGES @@ -45,6 +45,7 @@ Bugfixes: - Qt: Fix a race condition when a game crashes immediately - Qt: Fix some cases where key mapping can break if focus is adjusted - GBA Memory: Filter out top nybble of DMA addresses + - Debugger: Fix binary print putting spaces between digits Misc: - Qt: Disable sync to video by default - GBA: Exit cleanly on FATAL if the port supports it diff --git a/src/debugger/cli-debugger.c b/src/debugger/cli-debugger.c index 5ff6f5d00..619a7df76 100644 --- a/src/debugger/cli-debugger.c +++ b/src/debugger/cli-debugger.c @@ -191,7 +191,7 @@ static void _printBin(struct CLIDebugger* debugger, struct CLIDebugVector* dv) { printf(" 0b"); int i = 32; while (i--) { - printf(" %u", (dv->intValue >> i) & 1); + printf("%u", (dv->intValue >> i) & 1); } } printf("\n");