From 314c3f73c7f3c8f048ed7d46d675774b28b286e9 Mon Sep 17 00:00:00 2001 From: Nick Chan Date: Tue, 5 Mar 2024 16:12:12 +0800 Subject: [PATCH] Fix protobox patch printf --- .github/workflows/ci.yml | 4 ++-- checkra1n/kpf/main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9025b51..cc83f2ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: | diff --git a/checkra1n/kpf/main.c b/checkra1n/kpf/main.c index 63487dea..8f3b30e1 100644 --- a/checkra1n/kpf/main.c +++ b/checkra1n/kpf/main.c @@ -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; }