Replace printf with GT_LOGI and GT_LOGE.