Replace pEd with more-general pI, and fix some printf arg casts.