Module Name: src
Committed By: skrll
Date: Thu Jan 9 10:39:01 UTC 2025
Modified Files:
src/sys/arch/riscv/starfive: jh7110_pcie.c
Log Message:
Fix error reporting to not include two ": "
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/riscv/starfive/jh7110_pcie.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/riscv/starfive/jh7110_pcie.c
diff -u src/sys/arch/riscv/starfive/jh7110_pcie.c:1.1 src/sys/arch/riscv/starfive/jh7110_pcie.c:1.2
--- src/sys/arch/riscv/starfive/jh7110_pcie.c:1.1 Wed Jan 1 17:53:08 2025
+++ src/sys/arch/riscv/starfive/jh7110_pcie.c Thu Jan 9 10:39:01 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: jh7110_pcie.c,v 1.1 2025/01/01 17:53:08 skrll Exp $ */
+/* $NetBSD: jh7110_pcie.c,v 1.2 2025/01/09 10:39:01 skrll Exp $ */
/*-
* Copyright (c) 2024 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: jh7110_pcie.c,v 1.1 2025/01/01 17:53:08 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: jh7110_pcie.c,v 1.2 2025/01/09 10:39:01 skrll Exp $");
#include <sys/param.h>
@@ -414,7 +414,7 @@ jh7110_pcie_host_init(struct jh7110_pcie
c++) {
if (clk_enable(clk) != 0) {
aprint_error_dev(phsc->sc_dev,
- ": couldn't enable clock #%d\n", c);
+ "couldn't enable clock #%d\n", c);
return ENXIO;
}
}
@@ -425,7 +425,7 @@ jh7110_pcie_host_init(struct jh7110_pcie
r++) {
if (fdtbus_reset_deassert(rst) != 0) {
aprint_error_dev(phsc->sc_dev,
- ": couldn't de-assert reset #%d\n", r);
+ "couldn't de-assert reset #%d\n", r);
return ENXIO;
}
}
@@ -498,7 +498,7 @@ jh7110_pcie_host_init(struct jh7110_pcie
syscon_unlock(sc->sc_syscon);
if ((reg & DATA_LINK_ACTIVE) == 0) {
- aprint_error_dev(phsc->sc_dev, ": link not up\n");
+ aprint_error_dev(phsc->sc_dev, "link not up\n");
return ENXIO;
}
@@ -527,7 +527,7 @@ jh7110_pcie_atr_init(struct jh7110_pcie_
ranges = fdtbus_get_prop(phsc->sc_phandle, "ranges", &ranges_len);
if (ranges == NULL) {
aprint_error_dev(phsc->sc_dev,
- ": couldn't find 'ranges' property\n");
+ "couldn't find 'ranges' property\n");
return ENXIO;
}
const int ranges_cells = ranges_len / sizeof(uint32_t);