lib/debug Use vdprintf rather than manually allocate