improve snippet stderr printf