fixed warn and replace 'printf' with 'log';
fixed compil
Merge pull request #7515 from Dhilan007/v3-320final

fixed warn and replace 'printf' with 'log';