Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/fdt Fix off-by-one when printing the range of S...
details: https://anonhg.NetBSD.org/src/rev/92857508c58a
branches: trunk
changeset: 946406:92857508c58a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Nov 25 20:59:20 2020 +0000
description:
Fix off-by-one when printing the range of SPIs in a GICv2m frame
diffstat:
sys/arch/arm/fdt/gic_fdt.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 3016d0ba8223 -r 92857508c58a sys/arch/arm/fdt/gic_fdt.c
--- a/sys/arch/arm/fdt/gic_fdt.c Wed Nov 25 19:50:06 2020 +0000
+++ b/sys/arch/arm/fdt/gic_fdt.c Wed Nov 25 20:59:20 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gic_fdt.c,v 1.18 2019/11/24 11:10:12 skrll Exp $ */
+/* $NetBSD: gic_fdt.c,v 1.19 2020/11/25 20:59:20 jmcneill Exp $ */
/*-
* Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "pci.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic_fdt.c,v 1.18 2019/11/24 11:10:12 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic_fdt.c,v 1.19 2020/11/25 20:59:20 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -227,8 +227,8 @@
aprint_error_dev(sc->sc_gicdev, "failed to initialize GICv2m\n");
} else {
aprint_normal_dev(sc->sc_gicdev, "GICv2m @ %#" PRIx64
- ", SPIs %u-%u\n", frame->frame_reg,
- frame->frame_base, frame->frame_base + frame->frame_count);
+ ", SPIs %u-%u\n", frame->frame_reg, frame->frame_base,
+ frame->frame_base + frame->frame_count - 1);
}
}
#endif
Home |
Main Index |
Thread Index |
Old Index