Skip to content

Commit c4ff19a

Browse files
JianyuWang0623jerpelea
authored andcommitted
system/fastboot: fix typos of response error log
Fix typos of sparse header comments and download/upload response error log. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
1 parent 9df322d commit c4ff19a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/fastboot/fastboot.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct fastboot_sparse_header_s
109109
{
110110
uint32_t magic; /* 0xed26ff3a */
111111
uint16_t major_version; /* (0x1) - reject images with higher major versions */
112-
uint16_t minor_version; /* (0x0) - allow images with higer minor versions */
112+
uint16_t minor_version; /* (0x0) - allow images with higher minor versions */
113113
uint16_t file_hdr_sz; /* 28 bytes for first revision of the file format */
114114
uint16_t chunk_hdr_sz; /* 12 bytes for first revision of the file format */
115115
uint32_t blk_sz; /* block size in bytes, must be a multiple of 4 (4096) */
@@ -652,7 +652,7 @@ static void fastboot_download(FAR struct fastboot_ctx_s *ctx,
652652
ret = ctx->ops->write(ctx, response, strlen(response));
653653
if (ret < 0)
654654
{
655-
fb_err("Reponse error [%d]\n", -ret);
655+
fb_err("Response error [%d]\n", -ret);
656656
return;
657657
}
658658

@@ -943,7 +943,7 @@ static void fastboot_upload(FAR struct fastboot_ctx_s *ctx,
943943
ret = ctx->ops->write(ctx, response, strlen(response));
944944
if (ret < 0)
945945
{
946-
fb_err("Reponse error [%d]\n", -ret);
946+
fb_err("Response error [%d]\n", -ret);
947947
goto done;
948948
}
949949

0 commit comments

Comments
 (0)