lib/replace: replace all *printf function if we replace snprintf (bug #9390)