Skip to content

Commit c314557

Browse files
mniestrojcarlescufi
authored andcommitted
fs: shell: fix incorrect message format when mount fails
There is '%u' and '%d' in format message, while there is only one argument (besides format string). Remove ununsed '%u' to stop printing garbage. Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 8e1a071 commit c314557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/fs/shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static int cmd_mount_littlefs(const struct shell *shell, size_t argc, char **arg
536536
int rc = fs_mount(&littlefs_mnt);
537537

538538
if (rc != 0) {
539-
shell_error(shell, "Error mounting %u as littlefs: %d", rc);
539+
shell_error(shell, "Error mounting as littlefs: %d", rc);
540540
return -ENOEXEC;
541541
}
542542

0 commit comments

Comments
 (0)