mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
style: fix checkpatch issues after debug.h move
Build Documentation / build-html (push) Has been cancelled
Build Documentation / build-html (push) Has been cancelled
Fixed copespell errors, for CI sucess! Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
This commit is contained in:
committed by
Alan C. Assis
parent
0dccc8ba21
commit
13d0e64ee6
@@ -858,7 +858,7 @@ static ssize_t cromfs_read(FAR struct file *filep, FAR char *buffer,
|
||||
size_t remaining;
|
||||
uint32_t blkoffs;
|
||||
uint16_t ulen;
|
||||
uint16_t clen;
|
||||
uint16_t complen;
|
||||
unsigned int copysize;
|
||||
unsigned int copyoffs;
|
||||
|
||||
@@ -944,9 +944,9 @@ static ssize_t cromfs_read(FAR struct file *filep, FAR char *buffer,
|
||||
|
||||
ulen = (uint16_t)hdr1->lzf_ulen[0] << 8 |
|
||||
(uint16_t)hdr1->lzf_ulen[1];
|
||||
clen = (uint16_t)hdr1->lzf_clen[0] << 8 |
|
||||
complen = (uint16_t)hdr1->lzf_clen[0] << 8 |
|
||||
(uint16_t)hdr1->lzf_clen[1];
|
||||
blksize = (uint32_t)clen + LZF_TYPE1_HDR_SIZE;
|
||||
blksize = (uint32_t)complen + LZF_TYPE1_HDR_SIZE;
|
||||
}
|
||||
|
||||
nexthdr = (FAR struct lzf_header_s *)
|
||||
@@ -1006,7 +1006,8 @@ static ssize_t cromfs_read(FAR struct file *filep, FAR char *buffer,
|
||||
{
|
||||
unsigned int decomplen;
|
||||
|
||||
decomplen = lzf_decompress(src, clen, dest, fs->cv_bsize);
|
||||
decomplen = lzf_decompress(src, complen, dest,
|
||||
fs->cv_bsize);
|
||||
|
||||
ff->ff_offset = voloffs;
|
||||
ff->ff_ulen = decomplen;
|
||||
@@ -1045,7 +1046,7 @@ static ssize_t cromfs_read(FAR struct file *filep, FAR char *buffer,
|
||||
{
|
||||
unsigned int decomplen;
|
||||
|
||||
decomplen = lzf_decompress(src, clen, ff->ff_buffer,
|
||||
decomplen = lzf_decompress(src, complen, ff->ff_buffer,
|
||||
fs->cv_bsize);
|
||||
|
||||
ff->ff_offset = voloffs;
|
||||
@@ -1053,9 +1054,9 @@ static ssize_t cromfs_read(FAR struct file *filep, FAR char *buffer,
|
||||
}
|
||||
|
||||
finfo("voloffs=%" PRIu32 " blkoffs=%" PRIu32 " ulen=%" PRIu16
|
||||
" clen=%" PRIu16 " ff_offset=%" PRIu32
|
||||
" complen=%" PRIu16 " ff_offset=%" PRIu32
|
||||
" copyoffs=%u copysize=%u\n",
|
||||
voloffs, blkoffs, ulen, clen, ff->ff_offset,
|
||||
voloffs, blkoffs, ulen, complen, ff->ff_offset,
|
||||
copyoffs, copysize);
|
||||
DEBUGASSERT(ff->ff_ulen >= (copyoffs + copysize));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user