subsys: disk: Fix log level issues

Fix SYS_LOG_DISK_LEVEL Kconfig message.

Fix SYS_LOG_DBG compilation issues.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
This commit is contained in:
Ramakrishna Pallala 2018-05-28 17:00:50 +05:30 committed by Anas Nashif
commit ae2f419b56
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ config DISK_ACCESS_MAX_VOLUMES
config SYS_LOG_DISK_LEVEL config SYS_LOG_DISK_LEVEL
int int
prompt "File System log level" prompt "Disk log level"
depends on SYS_LOG depends on SYS_LOG
default 0 default 0
help help

View file

@ -138,7 +138,7 @@ int disk_access_register(struct disk_info *disk)
/* append to the disk list */ /* append to the disk list */
sys_dlist_append(&disk_access_list, &disk->node); sys_dlist_append(&disk_access_list, &disk->node);
SYS_LOG_DBG("disk interface(%s) registred", name); SYS_LOG_DBG("disk interface(%s) registred", disk->name);
reg_err: reg_err:
k_mutex_unlock(&mutex); k_mutex_unlock(&mutex);
return rc; return rc;
@ -162,7 +162,7 @@ int disk_access_unregister(struct disk_info *disk)
} }
/* remove disk node from the list */ /* remove disk node from the list */
sys_dlist_remove(&disk->node); sys_dlist_remove(&disk->node);
SYS_LOG_DBG("disk interface(%s) unregistred", name); SYS_LOG_DBG("disk interface(%s) unregistred", disk->name);
unreg_err: unreg_err:
k_mutex_unlock(&mutex); k_mutex_unlock(&mutex);
return rc; return rc;