From 713edd3a0627356fa946cadc1cb252d59f2ddfbc Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Mon, 5 May 2008 20:41:10 +0000 Subject: [PATCH] LINT fixes --- sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c | 2 +- sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c index c6836d54badf..93a9e89fd39d 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_cq.c @@ -259,7 +259,7 @@ int iwch_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc) do { err = iwch_poll_cq_one(rhp, chp, wc + npolled); #ifdef DEBUG - BUG_ON(++i > 1000); + PANIC_IF(++i > 1000); #endif } while (err == -EAGAIN); if (err <= 0) diff --git a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c index 4cd7ca3a3785..8b52119e306e 100644 --- a/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c +++ b/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_dbg.c @@ -159,13 +159,13 @@ void cxio_dump_pbl(struct cxio_rdev *rdev, uint32_t pbl_addr, uint32_t len, u8 s void cxio_dump_wqe(union t3_wr *wqe) { uint64_t *data = (uint64_t *)wqe; - uint32_t size = (uint32_t)(be64_to_cpu(*data) & 0xff); + uint32_t size = (uint32_t)(be64toh(*data) & 0xff); if (size == 0) size = 8; while (size > 0) { CTR2(KTR_IW_CXGB, "WQE %p: %016llx", data, - (unsigned long long) be64_to_cpu(*data)); + (unsigned long long) be64toh(*data)); size--; data++; } @@ -178,7 +178,7 @@ void cxio_dump_wce(struct t3_cqe *wce) while (size > 0) { CTR2(KTR_IW_CXGB, "WCE %p: %016llx", data, - (unsigned long long) be64_to_cpu(*data)); + (unsigned long long) be64toh(*data)); size -= 8; data++; }