Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Extractor of SpreadTrum firmware files with extension pac

Extract all data that I may recognize in package.
Tested Successfully on Linux : Ubuntu 24.04 LTS

Extract all data that I may recognize in package.
2 changes: 1 addition & 1 deletion pacextractor.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ int main(int argc, char** argv) {
printf("Partition image extraction error");
exit(EXIT_FAILURE);
}
printf("\r\t%02d%%", (uint64_t)100 - (uint64_t)100*dataSizeLeft/partHeaders[i]->partitionSize);
printf("\r\t%02ld%%", (uint64_t)100 - (uint64_t)100*dataSizeLeft/partHeaders[i]->partitionSize);
}
printf("\n");
close(fd_new);
Expand Down
1 change: 1 addition & 0 deletions test_hai.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test hai.!