limit printFormatString to macro-mode, clean up