Commit 65463970 authored by Dominik Ermel's avatar Dominik Ermel Committed by Carles Cufi
Browse files

fs/shell: Fix formatting for output of ssize_t variable



Fix compilation error for devices where ssize_t can not
be formatted with %d, due to ssize_t not being equal int.

Fixes #39629

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
parent cd470da2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -378,7 +378,7 @@ static int cmd_cat(const struct shell *shell, size_t argc, char **argv)
		}

		if (read < 0) {
			shell_error(shell, "Failed to read from file %s (err: %d)",
			shell_error(shell, "Failed to read from file %s (err: %zd)",
				path, read);
		}