Fixes warnings for improper format and cast of integers in log and assert statements