Adds Cast to Logs

Use of OSStatus in %ld format string causes warnings. An Implicit cast to long resolves them.