target: Fix snprintf format string and argument mismatch in md output