fix compiler warnings for printf