fix compile warnings:
- too many arguments for format
- unused var