aboutsummaryrefslogtreecommitdiff
path: root/stand/powerpc/ofw
diff options
context:
space:
mode:
authorLeandro Lupori <luporl@FreeBSD.org>2019-05-20 19:21:35 +0000
committerLeandro Lupori <luporl@FreeBSD.org>2019-05-20 19:21:35 +0000
commitff7449d6f5a43a68e92bfaeb2de1f0bc6cc3acc7 (patch)
treefa3cd631dd9eb7bbac5bcc0f82a8b962c3b845f6 /stand/powerpc/ofw
parenta1fa04c0673094b44b3a03121f43821939a7f3b5 (diff)
downloadsrc-ff7449d6f5a43a68e92bfaeb2de1f0bc6cc3acc7.tar.gz
src-ff7449d6f5a43a68e92bfaeb2de1f0bc6cc3acc7.zip
[PowerPC64] stand: fix build using clang 8 as compiler
This change fixes "stand" build issues when using clang 8 as compiler. Submitted by: alfredo.junior_eldorado.org.br Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D20026
Notes
Notes: svn path=/head/; revision=348005
Diffstat (limited to 'stand/powerpc/ofw')
-rw-r--r--stand/powerpc/ofw/elf_freebsd.c2
-rw-r--r--stand/powerpc/ofw/ppc64_elf_freebsd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/stand/powerpc/ofw/elf_freebsd.c b/stand/powerpc/ofw/elf_freebsd.c
index 76933064ff07..89811e965d6e 100644
--- a/stand/powerpc/ofw/elf_freebsd.c
+++ b/stand/powerpc/ofw/elf_freebsd.c
@@ -84,7 +84,7 @@ __elfN(ofw_exec)(struct preloaded_file *fp)
if ((error = md_load(fp->f_args, &mdp, &dtbp)) != 0)
return (error);
- printf("Kernel entry at 0x%lx ...\n", e->e_entry);
+ printf("Kernel entry at 0x%x ...\n", entry);
dev_cleanup();
if (dtbp != 0) {
diff --git a/stand/powerpc/ofw/ppc64_elf_freebsd.c b/stand/powerpc/ofw/ppc64_elf_freebsd.c
index 96efb1618646..38c664228c12 100644
--- a/stand/powerpc/ofw/ppc64_elf_freebsd.c
+++ b/stand/powerpc/ofw/ppc64_elf_freebsd.c
@@ -87,7 +87,7 @@ ppc64_ofw_elf_exec(struct preloaded_file *fp)
if ((error = md_load64(fp->f_args, &mdp, &dtbp)) != 0)
return (error);
- printf("Kernel entry at 0x%lx ...\n", entry);
+ printf("Kernel entry at 0x%x ...\n", entry);
dev_cleanup();