Skip to content
Permalink
Browse files

subsys/fs: fix log messages requiring strdup

Use log_strdup for mount point paths.  Reduce redundancy in the log
messages.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  • Loading branch information...
pabigot authored and carlescufi committed Jul 22, 2019
1 parent c470fff commit 0b2725a4dc4233828833e5ed8121a1e9a9e195b4
Showing with 2 additions and 2 deletions.
  1. +2 −2 subsys/fs/fs.c
@@ -472,7 +472,7 @@ int fs_mount(struct fs_mount_t *mp)

/* append to the mount list */
sys_dlist_append(&fs_mnt_list, &mp->node);
LOG_DBG("fs mouted, mount point:%s", mp->mnt_point);
LOG_DBG("fs mounted at %s", log_strdup(mp->mnt_point));

mount_err:
k_mutex_unlock(&mutex);
@@ -508,7 +508,7 @@ int fs_unmount(struct fs_mount_t *mp)

/* remove mount node from the list */
sys_dlist_remove(&mp->node);
LOG_DBG("fs unmouted, mount point:%s", mp->mnt_point);
LOG_DBG("fs unmounted from %s", log_strdup(mp->mnt_point));

unmount_err:
k_mutex_unlock(&mutex);

0 comments on commit 0b2725a

Please sign in to comment.
You can’t perform that action at this time.