Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/stand/efiboot Fix EFIBOOT_DEBUG build on arm
details: https://anonhg.NetBSD.org/src/rev/dc66d8c2df0f
branches: trunk
changeset: 968138:dc66d8c2df0f
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jan 03 14:14:56 2020 +0000
description:
Fix EFIBOOT_DEBUG build on arm
diffstat:
sys/stand/efiboot/efifdt.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 88e721a6d322 -r dc66d8c2df0f sys/stand/efiboot/efifdt.c
--- a/sys/stand/efiboot/efifdt.c Fri Jan 03 12:59:46 2020 +0000
+++ b/sys/stand/efiboot/efifdt.c Fri Jan 03 14:14:56 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efifdt.c,v 1.20 2019/12/18 21:46:03 riastradh Exp $ */
+/* $NetBSD: efifdt.c,v 1.21 2020/01/03 14:14:56 skrll Exp $ */
/*-
* Copyright (c) 2019 Jason R. Thorpe
@@ -47,6 +47,13 @@
(_md)->Type == EfiBootServicesCode || (_md)->Type == EfiBootServicesData || \
(_md)->Type == EfiConventionalMemory)
+#ifdef _LP64
+#define PRIdUINTN "ld"
+#define PRIxUINTN "lx"
+#else
+#define PRIdUINTN "d"
+#define PRIxUINTN "x"
+#endif
static void *fdt_data = NULL;
int
@@ -275,7 +282,7 @@
continue;
#ifdef EFIBOOT_DEBUG
- printf("GOP: FB @ 0x%lx size 0x%lx\n", mode->FrameBufferBase, mode->FrameBufferSize);
+ printf("GOP: FB @ 0x%" PRIx64 " size 0x%" PRIxUINTN "\n", mode->FrameBufferBase, mode->FrameBufferSize);
printf("GOP: Version %d\n", mode->Info->Version);
printf("GOP: HRes %d VRes %d\n", mode->Info->HorizontalResolution, mode->Info->VerticalResolution);
printf("GOP: PixelFormat %d\n", mode->Info->PixelFormat);
Home |
Main Index |
Thread Index |
Old Index