/** Enables debug level logs for NPU hardware */
#ifndef DEBUG
-#define DEBUG 1
+#define DEBUG 0
#endif
/** Tag for logging */
npriv->opmode == NPUINPUT_HOST) {
pthread_cond_wait (&npriv->proc_thread.cond, &npriv->proc_thread.mutex);
if (npriv->proc_thread.state == HALT_REQUESTED) {
- loginfo (TAG, "Service halted with HALT_NOW");
+ loginfo (TAG, "Service halted with HALT_NOW\n");
goto exit;
}
}
status = npu_check_compute_ready(npriv->fd);
if (status == -EBUSY && npriv->opmode == NPUINPUT_HOST) {
/** TODO: Later change to not-error and add wait for ready here */
- logerr (TAG, "Device busy by other application??");
+ logerr (TAG, "Device busy by other application??\n");
npriv->proc_thread.state = ERROR;
goto exit;
} else if (status < 0) {
/** use the information from npriv->proc_thread */
status = buffer_get_hwmem(npriv->proc_thread.buffer, &hwmem_ptr);
if (status < 0) {
- logerr (TAG, "Getting hwmem failed, errno: \n", status);
+ logerr (TAG, "Getting hwmem failed, errno: %d\n", status);
npriv->proc_thread.state = ERROR;
goto exit;
}
if ((status = hwmem_get_offset(hwmem_ptr, &hwmem_offset)) < 0) {
- logerr (TAG, "Getting hwmem failed, errno: \n", status);
+ logerr (TAG, "Getting hwmem offset failed, errno: %d\n", status);
npriv->proc_thread.state = ERROR;
goto exit;
}
{
int status;
n40_status nstatus;
-#ifdef DEBUG
+#if DEBUG == 1
struct srnpu_status_arg * npu_status;
#endif
host_inservice_priv *npriv;
npriv = HOST_PRIV (me);
assert (npriv);
-#ifdef DEBUG
+#if DEBUG == 1
npu_status = npu_get_status (npriv->fd);
if (npu_status != NULL) {
loginfo(TAG, "CP_INFO: %x\n", npu_status->cp_info);