From patchwork Fri Oct 22 20:15:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 277811 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 o9MKGMK8031863 for ; Fri, 22 Oct 2010 20:16:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759360Ab0JVUQH (ORCPT ); Fri, 22 Oct 2010 16:16:07 -0400 Received: from mga09.intel.com ([134.134.136.24]:47875 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757246Ab0JVUPy convert rfc822-to-8bit (ORCPT ); Fri, 22 Oct 2010 16:15:54 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 22 Oct 2010 13:15:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.58,224,1286175600"; d="scan'208";a="566584464" Received: from orsmsx604.amr.corp.intel.com ([10.22.226.87]) by orsmga002.jf.intel.com with ESMTP; 22 Oct 2010 13:15:52 -0700 Received: from orsmsx506.amr.corp.intel.com ([10.22.226.44]) by orsmsx604.amr.corp.intel.com ([10.250.113.17]) with mapi; Fri, 22 Oct 2010 13:15:52 -0700 From: "Davis, Arlin R" To: linux-rdma , "ofw@lists.openfabrics.org" Date: Fri, 22 Oct 2010 13:15:51 -0700 Subject: [PATCH] DAPL v2.0: common: modify debug in dat_evd_dequeue to reduce noise, only output on non-empty Thread-Topic: [PATCH] DAPL v2.0: common: modify debug in dat_evd_dequeue to reduce noise, only output on non-empty Thread-Index: ActyJexJLkhnoQaKRw2HBaZgZazBMA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 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.3 (demeter1.kernel.org [140.211.167.41]); Fri, 22 Oct 2010 20:16:22 +0000 (UTC) diff --git a/dapl/common/dapl_evd_dequeue.c b/dapl/common/dapl_evd_dequeue.c index 7632fe1..f31e497 100644 --- a/dapl/common/dapl_evd_dequeue.c +++ b/dapl/common/dapl_evd_dequeue.c @@ -69,9 +69,6 @@ DAT_RETURN DAT_API dapl_evd_dequeue(IN DAT_EVD_HANDLE evd_handle, DAT_EVENT *local_event; DAT_RETURN dat_status; - dapl_dbg_log(DAPL_DBG_TYPE_API, - "dapl_evd_dequeue (%p, %p)\n", evd_handle, event); - evd_ptr = (DAPL_EVD *) evd_handle; dat_status = DAT_SUCCESS; @@ -125,10 +122,14 @@ DAT_RETURN DAT_API dapl_evd_dequeue(IN DAT_EVD_HANDLE evd_handle, DAPL_CNTR(evd_ptr, DCNT_EVD_DEQUEUE_NOT_FOUND); } +#ifdef DAPL_DBG + if (dat_status == DAT_SUCCESS) + dapl_dbg_log(DAPL_DBG_TYPE_EVD, + "dapl_evd_dequeue() Event(%p) = 0x%x\n", + event->evd_handle, event->event_number); +#endif dapl_os_unlock(&evd_ptr->header.lock); bail: - dapl_dbg_log(DAPL_DBG_TYPE_RTN, - "dapl_evd_dequeue () returns 0x%x\n", dat_status); return dat_status; }