Update src/diag.c

Changed descriptors in fprintf() to match arg type to quiet warnings.