printf warning fixes