Remove unused variable.
Fix printf warning.