fixed some compilation warning

Remove warning: format '<format>' expects type '<type1>', but argument has type 'size_t'
Remove warning: unused parameter '<name>'