Skip to content

Commit

Permalink
kernel/wpi: Fix build with WPI_DEBUG.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Wildner committed May 25, 2016
1 parent 922a4bc commit e4bea86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sys/dev/netif/wpi/if_wpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4222,9 +4222,9 @@ wpi_scan(struct wpi_softc *sc, struct ieee80211_channel *c)
memcpy(essids[i].data, ss->ss_ssid[i].ssid, essids[i].len);
#ifdef WPI_DEBUG
if (sc->sc_debug & WPI_DEBUG_SCAN) {
printf("Scanning Essid: ");
kprintf("Scanning Essid: ");
ieee80211_print_essid(essids[i].data, essids[i].len);
printf("\n");
kprintf("\n");
}
#endif
}
Expand Down
6 changes: 3 additions & 3 deletions sys/dev/netif/wpi/if_wpi_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enum {

#define DPRINTF(sc, m, ...) do { \
if (sc->sc_debug & (m)) \
printf(__VA_ARGS__); \
kprintf(__VA_ARGS__); \
} while (0)

#define TRACE_STR_BEGIN "->%s: begin\n"
Expand Down Expand Up @@ -119,7 +119,7 @@ static const char *wpi_get_csr_string(size_t csr)
WPI_DESC(WPI_ANA_PLL);
WPI_DESC(WPI_DBG_HPET_MEM);
default:
KASSERT(0, ("Unknown CSR: %d\n", csr));
KASSERT(0, ("Unknown CSR: %zu\n", csr));
return "UNKNOWN CSR";
}
}
Expand All @@ -132,7 +132,7 @@ static const char *wpi_get_prph_string(size_t prph)
WPI_DESC(WPI_APMG_PCI_STT);
WPI_DESC(WPI_APMG_RFKILL);
default:
KASSERT(0, ("Unknown register: %d\n", prph));
KASSERT(0, ("Unknown register: %zu\n", prph));
return "UNKNOWN PRPH";
}
}
Expand Down

0 comments on commit e4bea86

Please sign in to comment.