Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic aprint_error_dev is for autoconfig messages, use ...
details: https://anonhg.NetBSD.org/src/rev/25326ca8d91b
branches: trunk
changeset: 368719:25326ca8d91b
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Jul 30 12:48:17 2022 +0000
description:
aprint_error_dev is for autoconfig messages, use device_printf instead.
diffstat:
sys/dev/ic/ld_aac.c | 8 ++++----
sys/dev/ic/ld_nvme.c | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (71 lines):
diff -r 86cc250659a5 -r 25326ca8d91b sys/dev/ic/ld_aac.c
--- a/sys/dev/ic/ld_aac.c Sat Jul 30 07:27:55 2022 +0000
+++ b/sys/dev/ic/ld_aac.c Sat Jul 30 12:48:17 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_aac.c,v 1.30 2016/09/27 03:33:32 pgoyette Exp $ */
+/* $NetBSD: ld_aac.c,v 1.31 2022/07/30 12:48:17 mlelstv Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_aac.c,v 1.30 2016/09/27 03:33:32 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_aac.c,v 1.31 2022/07/30 12:48:17 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -293,7 +293,7 @@
}
if (status != ST_OK) {
- aprint_error_dev(sc->sc_ld.sc_dv,
+ device_printf(sc->sc_ld.sc_dv,
"I/O error: %s\n",
aac_describe_code(aac_command_status_table,
status));
@@ -348,7 +348,7 @@
bp->b_error = EIO;
bp->b_resid = bp->b_bcount;
- aprint_error_dev(sc->sc_ld.sc_dv, "I/O error: %s\n",
+ device_printf(sc->sc_ld.sc_dv, "I/O error: %s\n",
aac_describe_code(aac_command_status_table, status));
} else
bp->b_resid = 0;
diff -r 86cc250659a5 -r 25326ca8d91b sys/dev/ic/ld_nvme.c
--- a/sys/dev/ic/ld_nvme.c Sat Jul 30 07:27:55 2022 +0000
+++ b/sys/dev/ic/ld_nvme.c Sat Jul 30 12:48:17 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_nvme.c,v 1.24 2020/09/22 11:53:10 kardel Exp $ */
+/* $NetBSD: ld_nvme.c,v 1.25 2022/07/30 12:48:17 mlelstv Exp $ */
/*-
* Copyright (C) 2016 NONAKA Kimihiro <nonaka%netbsd.org@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_nvme.c,v 1.24 2020/09/22 11:53:10 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_nvme.c,v 1.25 2022/07/30 12:48:17 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -168,14 +168,14 @@
if (status != NVME_CQE_SC_SUCCESS) {
bp->b_error = EIO;
bp->b_resid = bp->b_bcount;
- aprint_error_dev(sc->sc_ld.sc_dv, "I/O error\n");
+ device_printf(sc->sc_ld.sc_dv, "I/O error\n");
} else {
bp->b_resid = 0;
}
lddone(&sc->sc_ld, bp);
} else {
if (status != NVME_CQE_SC_SUCCESS) {
- aprint_error_dev(sc->sc_ld.sc_dv, "I/O error\n");
+ device_printf(sc->sc_ld.sc_dv, "I/O error\n");
}
}
}
Home |
Main Index |
Thread Index |
Old Index