From: scjody Date: Wed, 2 May 2007 23:12:52 +0000 (+0000) Subject: Branch b1_4 X-Git-Tag: v1_7_100~139 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=17cc8a13f1f04003523873f21e0e2a222f0c2d5e Branch b1_4 Fix build error on XT3 related to type of length variables. Original patch by walter. b=12358 i=adilger i=scjody --- diff --git a/lnet/ulnds/ptllnd/ptllnd_cb.c b/lnet/ulnds/ptllnd/ptllnd_cb.c index d5df024..bc62e80 100644 --- a/lnet/ulnds/ptllnd/ptllnd_cb.c +++ b/lnet/ulnds/ptllnd/ptllnd_cb.c @@ -568,7 +568,7 @@ ptllnd_set_txiov(ptllnd_tx_t *tx, CDEBUG(D_NET, "npiov=%d\n",npiov); CDEBUG(D_NET, "offset=%d\n",temp_offset); CDEBUG(D_NET, "len=%d\n",resid); - CDEBUG(D_NET, "iov[npiov].iov_len=%d\n",iov[npiov].iov_len); + CDEBUG(D_NET, "iov[npiov].iov_len=%lu\n",iov[npiov].iov_len); LASSERT (npiov < niov); LASSERT (iov->iov_len >= temp_offset); @@ -882,7 +882,7 @@ ptllnd_passive_rdma(ptllnd_peer_t *peer, int type, lnet_msg_t *msg, } CDEBUG(D_NET, "md.start=%p\n",md.start); - CDEBUG(D_NET, "md.length=%d\n",md.length); + CDEBUG(D_NET, "md.length=%llu\n",md.length); CDEBUG(D_NET, "md.threshold=%d\n",md.threshold); CDEBUG(D_NET, "md.max_size=%d\n",md.max_size); CDEBUG(D_NET, "md.options=0x%x\n",md.options); @@ -1505,7 +1505,7 @@ ptllnd_buf_event (lnet_ni_t *ni, ptl_event_t *event) /* Portals can't force message alignment - someone sending an * odd-length message could misalign subsequent messages */ if ((event->mlength & 7) != 0) { - CERROR("Message from %s has odd length %d: " + CERROR("Message from %s has odd length %llu: " "probable version incompatibility\n", ptllnd_ptlid2str(event->initiator), event->mlength);