From 5ef707395a16863dfdf5e50636aad0c40ace1de7 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Mon, 25 Mar 2019 19:44:29 +0100 Subject: [PATCH] sparc: fix some 64bit intolerant code Change-Id: I90bea483d7cf18696a6d5d2f18e8cada409884a2 Reviewed-on: https://review.haiku-os.org/c/1325 Reviewed-by: Alex von Gluck IV --- src/system/boot/platform/openfirmware/devices.cpp | 2 +- src/system/boot/platform/openfirmware/start.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/boot/platform/openfirmware/devices.cpp b/src/system/boot/platform/openfirmware/devices.cpp index acc57cb1b1..e21f9c759e 100644 --- a/src/system/boot/platform/openfirmware/devices.cpp +++ b/src/system/boot/platform/openfirmware/devices.cpp @@ -205,7 +205,7 @@ platform_add_block_devices(stage2_args *args, NodeList *devicesList) printf("\t%s\n", path); - int handle = of_open(path); + intptr_t handle = of_open(path); if (handle == OF_FAILED) { puts("\t\t(failed)"); continue; diff --git a/src/system/boot/platform/openfirmware/start.cpp b/src/system/boot/platform/openfirmware/start.cpp index 2938db2373..c699823ecd 100644 --- a/src/system/boot/platform/openfirmware/start.cpp +++ b/src/system/boot/platform/openfirmware/start.cpp @@ -116,7 +116,7 @@ platform_start_kernel(void) status_t error = arch_start_kernel(&gKernelArgs, kernelEntry, stackTop); - panic("Kernel returned! Return value: %ld\n", error); + panic("Kernel returned! Return value: %" B_PRId32 "\n", error); }