Skip to content

Commit

Permalink
subsys/fs: fix log messages requiring strdup
Browse files Browse the repository at this point in the history
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 24, 2019
1 parent c470fff commit 0b2725a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/fs/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0b2725a

Please sign in to comment.