Improve debug output format