rework vdprintf in a more standard way
Authored by: andy_rushton 2016-12-09
Parent: [r597]
Child: [r599]