[Sanitizer] Rework r176802: share code between Printf and Report and simplify it a bit