From patchwork Mon Dec 11 14:57:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 10105393 X-Patchwork-Delegate: ira.weiny@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 23A62602A7 for ; Mon, 11 Dec 2017 14:57:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C20F729589 for ; Mon, 11 Dec 2017 14:57:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B701D2964E; Mon, 11 Dec 2017 14:57:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CDB029589 for ; Mon, 11 Dec 2017 14:57:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751967AbdLKO51 (ORCPT ); Mon, 11 Dec 2017 09:57:27 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:38486 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbdLKO5Z (ORCPT ); Mon, 11 Dec 2017 09:57:25 -0500 Received: by mail-qt0-f196.google.com with SMTP id d4so39094646qtj.5 for ; Mon, 11 Dec 2017 06:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=vIfTJ80v9GaxhspsRfYT+dzr++7kbp+K/AbuqhoNdYQ=; b=sfbLTZyI73EoaUo9EhpQQpVGwocnsaAJVxo4BAQnYYQB903qwAfmKRCBwCl83q6ADF u/o+iqRF95n8dSRL5qAViUoxu4DyGjj3TS7jlIKHoNANT3oRJw8oIBPcv+tWzJCht8+A 9De15644BiiMAKDauUJHk+mR1KNEgemKpiJ2E8LNos0D04/H2P8iKP9SxHwOl2WArYpV RnkQl9fp8oPlNylXAgx+X9yEXxE8Pb5O3EwemuDhWsBbYdmF2ipSNp0sdxD40zGmy2WB djTzsDXJx/UsfYI+L/Yy0OSLQhJo1er7PkuxLjpy+/q/IL0xOn7ATVcm7mrvXTPoR9pW GJow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=vIfTJ80v9GaxhspsRfYT+dzr++7kbp+K/AbuqhoNdYQ=; b=Yf5XEvpMN/0kjScgCpMUbxX/PRfJiduR/RI96UzSM5ISO5nJLumUuYi/ND2t+D/Xph 0TepQTy1cr1wVXzFwZopHO1yGbMLt6PlLQUNBzyHmheX+du3M81Al2Xkg9Z0lLcxU3vs 40T8wHz/zNe6WMY1aPx9jx/QJvBu2o72E2rAdgCeMRfgTa8xs2Yo0iabAV6s34OWI6OY M7g6Ab6NKhQzBik1Q0UCQDSIGKrz99ZZw+1FUNOYe2R9CAkBks+kP5MKQwoEN5yG7bMD 1JyX4Zo3qd8Xs3xrsc4a+tld++iXjH69zgYJH7H/VdLrBVEPkLwOUZosMUOLIQMekYiy kixg== X-Gm-Message-State: AKGB3mIdQe5Rm2kqKvysecFfh07qCrES++pYYy5AIDybO+tQ71zg99t3 evo1XHrT5VgVUaKErd+Wqsloaktf X-Google-Smtp-Source: ACJfBovBnOu5z5kahnZxlGsHpKEX+LtocU4X7w5lc/EeGWJTTp8DLGuFRvEtpJLPoymrzmucsquVqQ== X-Received: by 10.200.38.133 with SMTP id 5mr917724qto.317.1513004245003; Mon, 11 Dec 2017 06:57:25 -0800 (PST) Received: from [192.168.1.183] (c-73-182-207-166.hsd1.ma.comcast.net. [73.182.207.166]) by smtp.googlemail.com with ESMTPSA id g32sm5002342qkh.74.2017.12.11.06.57.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 06:57:24 -0800 (PST) To: "Weiny, Ira" Cc: "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH infiniband-diags 2/2] smpdump.c: Print number of bytes returned by umad_recv Message-ID: <499f1d77-7da6-2c00-e826-bf4d0809f48a@dev.mellanox.co.il> Date: Mon, 11 Dec 2017 09:57:23 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Language: en-US Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Hal Rosenstock --- src/smpdump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/smpdump.c b/src/smpdump.c index bc8559a..bb304d4 100644 --- a/src/smpdump.c +++ b/src/smpdump.c @@ -281,6 +281,8 @@ int main(int argc, char *argv[]) if (umad_recv(portid, umad, &length, -1) != mad_agent) IBPANIC("recv error: %s", strerror(errno)); + printf("%d bytes received\n", length); + if (!dump_char) { xdump(stdout, 0, smp->data, 64); if (smp->status)