Skip to content

Commit

Permalink
Fix protobox patch printf
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfugil committed Mar 5, 2024
1 parent e86577d commit 314c3f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ jobs:

- name: Get kernels
run: |
curl -LO https://github.com/pete4abw/lrzip-next/releases/download/v0.12.6/lrzip-next-static-0.12.6
curl -sLO https://github.com/pete4abw/lrzip-next/releases/download/v0.12.6/lrzip-next-static-0.12.6
chmod +x lrzip-next-static-0.12.6
curl -Lu ${{ secrets.ACTIONS_RESOURCES_LOGIN }} https://static.palera.in/action-resources/kc.tar.lrz | ./lrzip-next-static-0.12.6 -d - | tar -x
curl -sLu ${{ secrets.ACTIONS_RESOURCES_LOGIN }} https://static.palera.in/action-resources/kc.tar.lrz | ./lrzip-next-static-0.12.6 -do - | tar -x
- name: Test KPF
run: |
Expand Down
2 changes: 1 addition & 1 deletion checkra1n/kpf/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ bool kpf_protobox_callback(struct xnu_pf_patch *patch, uint32_t *opcode_stream)
// Make protobox think this device is in "Restore" mode
// This will disable protobox
opcode_stream[2] = 0xD2800020; // mov x0, #1
printf("KPF: Found and patched protobox check @ 0x%llx\n", xnu_ptr_to_va(opcode_stream));
printf("KPF: Found and patched protobox check @ 0x%" PRIx64 "\n", xnu_ptr_to_va(opcode_stream));
return true;
}

Expand Down

0 comments on commit 314c3f7

Please sign in to comment.