From: miod Date: Sun, 21 Jan 2024 07:17:06 +0000 (+0000) Subject: Print raw battery information if KB3310_DEBUG, not DEBUG. NFC X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b4f91ba2d94c623df6ffa7f5d205e383652827d0;p=openbsd Print raw battery information if KB3310_DEBUG, not DEBUG. NFC --- 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) {