Fixed some printf format and warnings

Fixed some printf format
Silenced warnings