> > On 2/7/2018 12:35 AM, ira.weiny wrote: > > On Mon, Dec 11, 2017 at 09:57:23AM -0500, Hal Rosenstock wrote: > >> > >> Signed-off-by: Hal Rosenstock <hal@xxxxxxxxxxxx> > >> --- > >> 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); > > > > This seems like it is more for debugging. > > I don't recall now what the case was exactly where umad_recv succeeded but it > was unclear whether the data was valid or not. In that sense, it's a missing part of > the current information returned. > > I think this command geared at manual debug of attribute IDs not supported in > smpquery. > > > How will this affect any scripts which include this command? > > AFAIK there are no such scripts. > > > Should we make this debug output? > > That's probably better/safer and at least provides a way to obtain the proposed > added information. > > Do you want an updated patch for this ? Yes please, Ira ��.n��������+%������w��{.n�����{���fk��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f