diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-12-04 10:06:06 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-12-04 10:06:06 +0000 |
| commit | 3238c6bd335a8262f18b21ab308b569a49cc7fe7 (patch) | |
| tree | acd04a6feb972f86071cbebb5420c10b69d82de9 /sys/dev/esp | |
| parent | 4cbc44fb193808cd4074770c043253cb87761f45 (diff) | |
Notes
Diffstat (limited to 'sys/dev/esp')
| -rw-r--r-- | sys/dev/esp/ncr53c9x.c | 2 | ||||
| -rw-r--r-- | sys/dev/esp/ncr53c9xvar.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/esp/ncr53c9x.c b/sys/dev/esp/ncr53c9x.c index 010e9c6668bdd..c9ac5e808b8ef 100644 --- a/sys/dev/esp/ncr53c9x.c +++ b/sys/dev/esp/ncr53c9x.c @@ -2958,7 +2958,7 @@ ncr53c9x_timeout(void *arg) sc->sc_phase, sc->sc_prevphase, (long)sc->sc_dleft, sc->sc_msgpriq, sc->sc_msgout, NCRDMA_ISACTIVE(sc) ? "DMA active" : ""); -#if NCR53C9X_DEBUG > 1 +#if defined(NCR53C9X_DEBUG) && NCR53C9X_DEBUG > 1 printf("TRACE: %s.", ecb->trace); #endif diff --git a/sys/dev/esp/ncr53c9xvar.h b/sys/dev/esp/ncr53c9xvar.h index 79afceea59c7e..c9ac4bbbe5998 100644 --- a/sys/dev/esp/ncr53c9xvar.h +++ b/sys/dev/esp/ncr53c9xvar.h @@ -142,11 +142,11 @@ struct ncr53c9x_ecb { u_char tag[2]; /* TAG bytes */ u_char pad[1]; -#if NCR53C9X_DEBUG > 1 +#if defined(NCR53C9X_DEBUG) && NCR53C9X_DEBUG > 1 char trace[1000]; #endif }; -#if NCR53C9X_DEBUG > 1 +#if defined(NCR53C9X_DEBUG) && NCR53C9X_DEBUG > 1 #define ECB_TRACE(ecb, msg, a, b) do { \ const char *f = "[" msg "]"; \ int n = strlen((ecb)->trace); \ |
