MTC/LTC debug tool: fix print-buffer