From b4f91ba2d94c623df6ffa7f5d205e383652827d0 Mon Sep 17 00:00:00 2001 From: miod Date: Sun, 21 Jan 2024 07:17:06 +0000 Subject: [PATCH] Print raw battery information if KB3310_DEBUG, not DEBUG. NFC --- sys/arch/loongson/dev/kb3310.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/loongson/dev/kb3310.c b/sys/arch/loongson/dev/kb3310.c index c7e1cc813a6..38c98a65d01 100644 --- a/sys/arch/loongson/dev/kb3310.c +++ b/sys/arch/loongson/dev/kb3310.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kb3310.c,v 1.23 2017/01/23 10:54:51 fcambus Exp $ */ +/* $OpenBSD: kb3310.c,v 1.24 2024/01/21 07:17:06 miod Exp $ */ /* * Copyright (c) 2010 Otto Moerbeek * @@ -176,7 +176,7 @@ ykbec_attach(struct device *parent, struct device *self, void *aux) return; } -#ifdef DEBUG +#ifdef KB3310_DEBUG ykbec_print_bat_info(sc); #endif printf("\n"); @@ -318,7 +318,7 @@ ykbec_read16(struct ykbec_softc *mcsc, u_int reg) #define YKBEC_SCI_IRQ 0xa -#ifdef DEBUG +#ifdef KB3310_DEBUG void ykbec_print_bat_info(struct ykbec_softc *sc) { -- 2.20.1