Module logging debug_printf fixes.

Fix debug_printf itoa to work for unsigned values > 0x80000000 and printing the value 0.