debug_magic: adjust output