Fixed calling a host function("printf") from a device function issue

Calling a __host__ function("printf") from a __device__
function("java_lang_String__array_get") is not allowed