Skip to content

Commit 30cd19e

Browse files
authored
Fix formatting and update comments in bootimg.cpp
1 parent 1f1eb01 commit 30cd19e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

native/src/boot/bootimg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ static int find_dtb_offset(const uint8_t *buf, unsigned sz) {
292292
auto fdt_hdr = reinterpret_cast<const fdt_header *>(curr);
293293

294294
// Check that fdt_header.totalsize does not overflow kernel image size or is empty dtb
295-
// https://github.com/torvalds/linux/commit/7b937cc243e5b1df8780a0aa743ce800df6c68d1
295+
// https://github.com/torvalds/linux/commit/7b937cc243e5b1df8780a0aa743ce800df6c68d1
296296
uint32_t totalsize = fdt_hdr->totalsize;
297297
if (totalsize > end - curr || totalsize <= 0x48)
298298
continue;
@@ -923,7 +923,7 @@ void repack(Utf8CStr src_img, Utf8CStr out_img, bool skip_comp) {
923923
xwrite(fd, LG_BUMP_MAGIC, 16);
924924
}
925925

926-
off.tail = lseek(fd, 0, SEEK_CUR);
926+
off.tail = lseek(fd, 0, SEEK_CUR);
927927
file_align();
928928

929929
// vbmeta

0 commit comments

Comments
 (0)