Nathan,
On 6/26/14, 12:49 AM, Nathan Scott wrote:
- pst->needupdate = 3; /* 0x1 for portinfo, 0x2 for perfdata */
+ pst->needupdate = 11; /* 0x1 for portinfo, 0x2 for perfdata, 0x8 for switch
e.g. pst->needupdate = IB_PORTINFO | IB_PERFDATA | IB_SWITCH
(with appropriate #defines, better names, etc)
OK, done.
gcc -fPIC -fno-strict-aliasing -D_GNU_SOURCE -fstack-protector-all -D_FORTIFY_SOURCE=2
-Wall -g -DPCP_DEBUG -DPCP_VERSION=\"3.9.7\" -I../../../src/include
-I../../../src/include/pcp -c -o ib.o ib.c
ib.c: In function âib_fetch_valâ:
ib.c:666: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:667: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:893: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:899: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:904: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:910: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:917: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:919: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:927: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
ib.c:929: warning: pointer targets in passing argument 1 of âmad_decode_fieldâ
differ in signedness
/usr/include/infiniband/mad.h:1170: note: expected âuint8_t *â but argument is of type
âchar *â
Fixed.
Also included the help file.
Thanks
Martins
help
Description: Text document
ib.c
Description: Text document
ibpmda.h
Description: Text document
|