From: Eli Dorfman <elido-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>,
linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] infiniband-diags/vendstat: Fixed general info query
Date: Sun, 01 May 2011 09:28:57 +0300 [thread overview]
Message-ID: <4DBCFDA9.4040903@dev.mellanox.co.il> (raw)
In-Reply-To: <4DB97EDA.6030104-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
On 04/28/2011 05:51 PM, Hal Rosenstock wrote:
> On 4/28/2011 5:09 AM, Eli Dorfman wrote:
>> Fixed general info query
>>
>> There was no output when query succeeded
>
> Do you mean failed ?
No I meant succeeded.
Since the IBERROR was missing the print of GeneralInfo is skipped.
If it fails then the "if (general_info)" code is reached but it will print garbage.
Eli
>
> -- Hal
>
>>
>> Signed-off-by: Eli Dorfman <elido-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>> ---
>> src/vendstat.c | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/src/vendstat.c b/src/vendstat.c
>> index 92a90c8..8dbd1ee 100644
>> --- a/src/vendstat.c
>> +++ b/src/vendstat.c
>> @@ -375,6 +375,7 @@ int main(int argc, char **argv)
>> gi = (is3_general_info_t *) & buf;
>> if (do_vendor(&portid, srcport, IB_MLX_VENDOR_CLASS, IB_MAD_METHOD_GET,
>> IB_MLX_IS3_GENERAL_INFO, 0, gi))
>> + IBERROR("generalinfo query");
>>
>> if (general_info) {
>> /* dump IS3 or IS4 general info here */
>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-05-01 6:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-28 9:09 [PATCH] infiniband-diags/vendstat: Fixed general info query Eli Dorfman
[not found] ` <4DB92ED0.4050907-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-04-28 14:51 ` Hal Rosenstock
[not found] ` <4DB97EDA.6030104-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-05-01 6:28 ` Eli Dorfman [this message]
[not found] ` <4DBCFDA9.4040903-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-05-02 18:16 ` Ira Weiny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DBCFDA9.4040903@dev.mellanox.co.il \
--to=elido-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
--cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=weiny2-i2BcT+NCU+M@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox