loader: Avoid -Wpointer-to-int cast warnings for Arm and RISC-V
On RISC-V, Clang warns with: cast to smaller integer type 'unsigned int' from 'void (*)(void *)' Instead, use %p as the standard format specifier for printing pointers. Whilst Arm's pointer size is the same as unsigned, it's still cleaner to use the right thing there too. Reviewed by: brooks (mentor), emaste Approved by: brooks (mentor), emaste Differential Revision: https://reviews.freebsd.org/D25718
This commit is contained in:
parent
6d4880215b
commit
754558f531
@ -77,7 +77,7 @@ __elfN(arm_exec)(struct preloaded_file *fp)
|
||||
|
||||
entry = efi_translate(e->e_entry);
|
||||
|
||||
printf("Kernel entry at 0x%x...\n", (unsigned)entry);
|
||||
printf("Kernel entry at %p...\n", entry);
|
||||
printf("Kernel args: %s\n", fp->f_args);
|
||||
|
||||
if ((error = bi_load(fp->f_args, &modulep, &kernend)) != 0) {
|
||||
|
@ -63,7 +63,7 @@ __elfN(exec)(struct preloaded_file *fp)
|
||||
|
||||
entry = efi_translate(e->e_entry);
|
||||
|
||||
printf("Kernel entry at 0x%x...\n", (unsigned)entry);
|
||||
printf("Kernel entry at %p...\n", entry);
|
||||
printf("Kernel args: %s\n", fp->f_args);
|
||||
|
||||
if ((error = bi_load(fp->f_args, &modulep, &kernend)) != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user