PetscPrintf() supports some format specifiers that are unique to PETSc.
See the manual page for PetscFormatConvert() for details.
Fortran Note
The call sequence is PetscPrintf(MPI_Comm, character(*), PetscErrorCode ierr) from Fortran.
That is, you can only pass a single character string from Fortran.