fixed warn and replace 'printf' with 'log';
Merge pull request #7511 from Mazyod/const-data-copy

[FIX]: copied data should be const
fixed compil
Merge pull request #7515 from Dhilan007/v3-320final

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