From patchwork Wed Jan 22 04:33:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3521811 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BBA319F1C3 for ; Wed, 22 Jan 2014 04:33:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4A4720138 for ; Wed, 22 Jan 2014 04:33:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 60FF12011E for ; Wed, 22 Jan 2014 04:33:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752224AbaAVEdJ (ORCPT ); Tue, 21 Jan 2014 23:33:09 -0500 Received: from mail-wg0-f53.google.com ([74.125.82.53]:57051 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754677AbaAVEdG (ORCPT ); Tue, 21 Jan 2014 23:33:06 -0500 Received: by mail-wg0-f53.google.com with SMTP id y10so8645308wgg.8 for ; Tue, 21 Jan 2014 20:33:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=qj2MNDUE9CZIa19Z7P/wuYX/6EUHvjdMITLwTzSMSow=; b=cmKjjkovueOi0e26COqRt5qKpHzKXbexC1SKeH5M8/WHUz+jpyjAeH0wzGtBAslJhe q62viEWVmhuT9Ncb1WbYZEs16IhD6sCGnPGSjJFN1rfO0pPZOrWj81uHQW9H7sEDDHlI XWBzrilX8U71xn72EhOHUluV1krUAc7LA0OxlGQ2NilHV13han2/U0M+5Rd1JYoTX0TR WRQ86rMXl1qxo5hh7bbq7rel4sbjr8oF99KAqgVG7qmjKQ6awA362sFD74SfpeWD6yoh dDC3q6aFllAhGLya67iuJMM20OgGwRb8TKJAOwm56kgjHP0ZgyUBCYg3yGGq/9rOPVDn jniw== X-Gm-Message-State: ALoCoQldkGPbA5e5xklr630TnJSituvZmrBj/UaO5jcC7+OWpBW7ZnZmPTRLvYbVgjm9uhzG/8TR X-Received: by 10.180.198.200 with SMTP id je8mr898211wic.13.1390365184751; Tue, 21 Jan 2014 20:33:04 -0800 (PST) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id q5sm15634450wia.2.2014.01.21.20.33.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Jan 2014 20:33:04 -0800 (PST) Message-ID: <52DF49FD.2030506@dev.mellanox.co.il> Date: Tue, 21 Jan 2014 23:33:01 -0500 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: "Chu, Al" Subject: [PATCH opensm TRIVIAL] osmeventplugin: Fix compile warning Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP src/osmeventplugin.c: In function â??reportâ??: src/osmeventplugin.c:198: warning: format â??%dâ?? expects type â??intâ??, but argument 3 has type â??void *â?? Pointed-out-by: Albert L. Chu 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/osmeventplugin/src/osmeventplugin.c b/osmeventplugin/src/osmeventplugin.c index 1eaf7ea..0f3f9fb 100644 --- a/osmeventplugin/src/osmeventplugin.c +++ b/osmeventplugin/src/osmeventplugin.c @@ -195,7 +195,8 @@ static void report(void *_log, osm_epi_event_id_t event_id, void *event_data) fprintf(log->log_file, "Heavy sweep completed\n"); break; case OSM_EVENT_ID_UCAST_ROUTING_DONE: - fprintf(log->log_file, "Unicast routing completed %d\n", event_data); + fprintf(log->log_file, "Unicast routing completed %d\n", + (osm_epi_ucast_routing_flags_t) event_data); break; case OSM_EVENT_ID_STATE_CHANGE: fprintf(log->log_file, "SM state changed\n");