From 898e5d06797706f3f1839dd35c1dd3e7bfc12426 Mon Sep 17 00:00:00 2001 From: mglocker Date: Fri, 10 May 2024 06:14:10 +0000 Subject: [PATCH] Fix broken debugging. --- sys/dev/ic/ufshci.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/sys/dev/ic/ufshci.c b/sys/dev/ic/ufshci.c index 1bc2166c9dd..06121386689 100644 --- a/sys/dev/ic/ufshci.c +++ b/sys/dev/ic/ufshci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ufshci.c,v 1.19 2024/05/09 08:24:09 mglocker Exp $ */ +/* $OpenBSD: ufshci.c,v 1.20 2024/05/10 06:14:10 mglocker Exp $ */ /* * Copyright (c) 2022 Marcus Glocker @@ -42,8 +42,7 @@ #include #include -//#define UFSHCI_DEBUG 1 - +//#define UFSHCI_DEBUG #ifdef UFSHCI_DEBUG int ufshci_dbglvl = 1; #define DPRINTF(x...) do { printf(x); } while (0) @@ -174,7 +173,7 @@ ufshci_attach(struct ufshci_softc *sc) /* XXX: Using more than one slot currently causes OCS errors */ sc->sc_nutrs = 1; -#if UFSHCI_DEBUG +#ifdef UFSHCI_DEBUG printf("Capabilities (0x%08x):\n", sc->sc_cap); printf(" CS=%d\n", sc->sc_cap & UFSHCI_REG_CAP_CS ? 1 : 0); printf(" UICDMETMS=%d\n", @@ -1653,10 +1652,8 @@ ufshci_scsi_io(struct scsi_xfer *xs, int dir) if ((xs->flags & (SCSI_DATA_IN | SCSI_DATA_OUT)) != dir) goto error1; - DPRINTF("%s: %s, lba=%llu, blocks=%u, datalen=%d (%s)\n", - __func__, - ISSET(xs->flags, SCSI_DATA_IN) ? "READ" : "WRITE", - lba, blocks, xs->datalen, + DPRINTF("%s: %s, datalen=%d (%s)\n", __func__, + ISSET(xs->flags, SCSI_DATA_IN) ? "READ" : "WRITE", xs->datalen, ISSET(xs->flags, SCSI_POLL) ? "poll" : "no poll"); error = bus_dmamap_load(sc->sc_dmat, dmap, xs->data, xs->datalen, NULL, -- 2.20.1