diff options
author | ff224033 <none@none> | 2008-08-01 03:27:13 -0700 |
---|---|---|
committer | ff224033 <none@none> | 2008-08-01 03:27:13 -0700 |
commit | ff3124eff995e6cd8ebd8c6543648e0670920034 (patch) | |
tree | 2705dcb9221ab4f43e5043fd02ecfdccac95a529 /usr/src/uts/common/io/pcan/pcan.c | |
parent | 8956b8c2028bb15c1e7010a67b1c8b36ec8f47a8 (diff) | |
download | illumos-gate-ff3124eff995e6cd8ebd8c6543648e0670920034.tar.gz |
6732010 ral driver needs lint clean-up
6732012 wpa needs the E_BAD_PTR_CAST_ALIGN lint tags to be removed from Makefile
6732019 ath driver needs lint clean-up
6732027 iwk needs to remove lint tags from Makfile
6732028 pcan needs lint tags E_PTRDIFF_OVERFLOW to be removed from Makefile
6732031 net80211 module needs lint tags E_PTRDIFF_OVERFLOW to be removed from Makfile
Diffstat (limited to 'usr/src/uts/common/io/pcan/pcan.c')
-rw-r--r-- | usr/src/uts/common/io/pcan/pcan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/pcan/pcan.c b/usr/src/uts/common/io/pcan/pcan.c index 7c57a373c1..83e9fca5b3 100644 --- a/usr/src/uts/common/io/pcan/pcan.c +++ b/usr/src/uts/common/io/pcan/pcan.c @@ -1,5 +1,5 @@ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1011,7 +1011,7 @@ pcan_send(pcan_maci_t *pcan_p, mblk_t *mblk_p) #ifdef DEBUG if (pcan_debug & PCAN_DBG_SEND) { cmn_err(CE_NOTE, "pcan send: packet from plugin"); - for (i = 0; i < mblk_p->b_wptr - mblk_p->b_rptr; i++) + for (i = 0; i < MBLKL(mblk_p); i++) cmn_err(CE_NOTE, "%x: %x\n", i, *((unsigned char *)mblk_p->b_rptr + i)); } @@ -1127,7 +1127,7 @@ pcian_send(pcan_maci_t *pcan_p, mblk_t *mblk_p) #ifdef DEBUG if (pcan_debug & PCAN_DBG_SEND) { cmn_err(CE_NOTE, "pcan(pci) send: packet from plugin"); - for (i = 0; i < mblk_p->b_wptr - mblk_p->b_rptr; i++) + for (i = 0; i < MBLKL(mblk_p); i++) cmn_err(CE_NOTE, "%x: %x\n", i, *((unsigned char *)mblk_p->b_rptr + i)); } |