From patchwork Thu Jun 2 19:03:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 844672 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p52J3FKB007077 for ; Thu, 2 Jun 2011 19:03:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753449Ab1FBTDO (ORCPT ); Thu, 2 Jun 2011 15:03:14 -0400 Received: from mail-ew0-f46.google.com ([209.85.215.46]:58665 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753372Ab1FBTDN (ORCPT ); Thu, 2 Jun 2011 15:03:13 -0400 Received: by ewy4 with SMTP id 4so414927ewy.19 for ; Thu, 02 Jun 2011 12:03:12 -0700 (PDT) Received: by 10.216.230.105 with SMTP id i83mr2387537weq.43.1307041391973; Thu, 02 Jun 2011 12:03:11 -0700 (PDT) Received: from [192.168.1.100] (c-71-192-10-85.hsd1.ma.comcast.net [71.192.10.85]) by mx.google.com with ESMTPS id o19sm562859wbh.55.2011.06.02.12.03.08 (version=SSLv3 cipher=OTHER); Thu, 02 Jun 2011 12:03:09 -0700 (PDT) Message-ID: <4DE7DE6A.9040100@dev.mellanox.co.il> Date: Thu, 02 Jun 2011 15:03:06 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH] opensm/libvendor: Fix compile warnings on 64 bit machines when building --with-osmv=sim Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Jun 2011 19:03:15 +0000 (UTC) osm_vendor_mlx.c: In function '__osmv_get_send_txn': osm_vendor_mlx.c:708: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx.c:723: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx.c:733: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx.c:746: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx_hca_sim.c: In function '__parse_ca_info_file': osm_vendor_mlx_hca_sim.c:268: warning: format '%016llx' expects type 'long long unsigned int', but argument 5 has type 'uint64_t' osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_route': osm_vendor_mlx_dispatcher.c:208: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx_dispatcher.c:221: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_simple_mad': osm_vendor_mlx_dispatcher.c:276: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'long unsigned int' osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_rmpp_mad': osm_vendor_mlx_dispatcher.c:331: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_rmpp_rcv': osm_vendor_mlx_dispatcher.c:570: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx_dispatcher.c:624: warning: format '%llX' expects type 'long long unsigned int', but argument 5 has type 'uint64_t' osm_vendor_mlx_dispatcher.c:629: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'long unsigned int' osm_vendor_mlx_dispatcher.c: In function '__osmv_dispatch_accept_seg': osm_vendor_mlx_dispatcher.c:661: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx_dispatcher.c:674: warning: format '%llX' expects type 'long long unsigned int', but argument 4 has type 'uint64_t' osm_vendor_mlx_sender.c: In function '__osmv_rmpp_send_segment': osm_vendor_mlx_sender.c:345: warning: format '%llX' expects type 'long long unsigned int', but argument 5 has type 'ib_net64_t' Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/libvendor/osm_vendor_mlx.c b/libvendor/osm_vendor_mlx.c index 9ae59a9..7a40fa5 100644 --- a/libvendor/osm_vendor_mlx.c +++ b/libvendor/osm_vendor_mlx.c @@ -704,7 +704,7 @@ __osmv_get_send_txn(IN osm_bind_handle_t h_bind, if (IB_SUCCESS != ret) { osm_log(p_bo->p_vendor->p_log, OSM_LOG_ERROR, "__osmv_get_send_txn: ERR 7313: " - "The transaction id=0x%llX failed to init.\n", + "The transaction id=0x%" PRIx64 " failed to init.\n", tid); goto get_send_txn_done; } @@ -719,7 +719,7 @@ __osmv_get_send_txn(IN osm_bind_handle_t h_bind, || FALSE == osmv_txn_is_rmpp_init_by_peer(*pp_txn)) { osm_log(p_bo->p_vendor->p_log, OSM_LOG_ERROR, "__osmv_get_send_txn: ERR 7314: " - "The transaction id=0x%llX is not unique. Send failed.\n", + "The transaction id=0x%" PRIx64 " is not unique. Send failed.\n", tid); ret = IB_INVALID_SETTING; @@ -729,7 +729,7 @@ __osmv_get_send_txn(IN osm_bind_handle_t h_bind, if (TRUE == resp_expected) { osm_log(p_bo->p_vendor->p_log, OSM_LOG_ERROR, "__osmv_get_send_txn: ERR 7315: " - "The transaction id=%llX can't expect a response. Send failed.\n", + "The transaction id=0x%" PRIx64 " can't expect a response. Send failed.\n", tid); ret = IB_INVALID_PARAMETER; @@ -742,7 +742,7 @@ __osmv_get_send_txn(IN osm_bind_handle_t h_bind, if (IB_SUCCESS != ret) { osm_log(p_bo->p_vendor->p_log, OSM_LOG_ERROR, "__osmv_get_send_txn: ERR 7316: " - "The transaction id=%llX failed to init the rmpp mad. Send failed.\n", + "The transaction id=0x%" PRIx64 " failed to init the rmpp mad. Send failed.\n", tid); osmv_txn_done(h_bind, tid, FALSE); goto get_send_txn_done; diff --git a/libvendor/osm_vendor_mlx_dispatcher.c b/libvendor/osm_vendor_mlx_dispatcher.c index fa5fc1f..ba6c4e8 100644 --- a/libvendor/osm_vendor_mlx_dispatcher.c +++ b/libvendor/osm_vendor_mlx_dispatcher.c @@ -204,7 +204,7 @@ __osmv_dispatch_route(IN osm_bind_handle_t h_bind, if (FALSE == is_txn && TRUE == is_resp) { osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "Received a response to a non-started/aged-out transaction (tid=0x%llX). " + "Received a response to a non-started/aged-out transaction (tid=0x%" PRIx64 "). " "Dropping the MAD.\n", key); return OSMV_ROUTE_DROP; } @@ -217,7 +217,7 @@ __osmv_dispatch_route(IN osm_bind_handle_t h_bind, if (TRUE == is_txn && FALSE == is_resp) { /* Does this MAD try to start a transaction with duplicate tid? */ osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "Duplicate TID 0x%llX received (not a response). " + "Duplicate TID 0x%" PRIx64 " received (not a response). " "Dropping the MAD.\n", key); return OSMV_ROUTE_DROP; @@ -272,7 +272,7 @@ __osmv_dispatch_simple_mad(IN osm_bind_handle_t h_bind, p_mad_buf->trans_id = cl_hton64(osmv_txn_get_tid(p_txn)); osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "Restoring the original TID to 0x%llX\n", + "Restoring the original TID to 0x%" PRIx64 "\n", cl_ntoh64(p_mad_buf->trans_id)); /* Reply matched, transaction complete */ @@ -327,7 +327,7 @@ __osmv_dispatch_rmpp_mad(IN osm_bind_handle_t h_bind, is_init_by_peer = TRUE; osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "A new sender-initiated transfer (TID=0x%llX) started\n", + "A new sender-initiated transfer (TID=0x%" PRIx64 ") started\n", key); } @@ -567,7 +567,7 @@ __osmv_dispatch_rmpp_rcv(IN osm_bind_handle_t h_bind, if (TRUE != is_last1) { osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "RMPP MADW assembly continues, TID=0x%llX\n", tid); + "RMPP MADW assembly continues, TID=0x%" PRIx64 "\n", tid); goto dispatch_rmpp_rcv_done; } @@ -620,12 +620,12 @@ __osmv_dispatch_rmpp_rcv(IN osm_bind_handle_t h_bind, } osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "RMPP MADW %p assembly complete, TID=0x%llX\n", p_new_madw, + "RMPP MADW %p assembly complete, TID=0x%" PRIx64 "\n", p_new_madw, tid); p_mad_buf->trans_id = cl_hton64(tid); osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "Restoring the original TID to 0x%llX\n", + "Restoring the original TID to 0x%" PRIx64 "\n", cl_ntoh64(p_mad_buf->trans_id)); /* Finally, do the job! */ @@ -657,7 +657,7 @@ __osmv_dispatch_accept_seg(IN osm_bind_handle_t h_bind, if (seg_num != p_recv_ctx->expected_seg) { osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "TID 0x%llX: can't accept this segment (%d) - " + "TID 0x%" PRIx64 ": can't accept this segment (%d) - " "this is a Go-Back-N implementation\n", tid, seg_num); return IB_INSUFFICIENT_RESOURCES; } @@ -671,7 +671,7 @@ __osmv_dispatch_accept_seg(IN osm_bind_handle_t h_bind, } osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "TID 0x%llX: segment %d accepted\n", tid, seg_num); + "TID 0x%" PRIx64 ": segment %d accepted\n", tid, seg_num); p_recv_ctx->expected_seg = seg_num + 1; OSM_LOG_EXIT(p_bo->p_vendor->p_log); diff --git a/libvendor/osm_vendor_mlx_hca_sim.c b/libvendor/osm_vendor_mlx_hca_sim.c index c5e2106..15df23e 100644 --- a/libvendor/osm_vendor_mlx_hca_sim.c +++ b/libvendor/osm_vendor_mlx_hca_sim.c @@ -264,7 +264,7 @@ __parse_ca_info_file(IN osm_vendor_t * const p_vend, osm_log(p_vend->p_log, OSM_LOG_DEBUG, "__parse_ca_info_file: " - "CA1 = name:%s guid:0x%016llx ports:%d\n", + "CA1 = name:%s guid:0x%" PRIx64 " ports:%d\n", sim_ca_info->name, sim_ca_info->guid, sim_ca_info->num_ports); status = IB_SUCCESS; diff --git a/libvendor/osm_vendor_mlx_sender.c b/libvendor/osm_vendor_mlx_sender.c index fc1bf32..319a54e 100644 --- a/libvendor/osm_vendor_mlx_sender.c +++ b/libvendor/osm_vendor_mlx_sender.c @@ -341,7 +341,7 @@ __osmv_rmpp_send_segment(IN osm_bind_handle_t h_bind, p_mad->trans_id = cl_hton64(key); osm_log(p_bo->p_vendor->p_log, OSM_LOG_DEBUG, - "Sending RMPP segment #%d, on-wire TID=0x%llX\n", + "Sending RMPP segment #%d, on-wire TID=0x%" PRIx64 "\n", seg_num, p_mad->trans_id); /*