[ofa-general] ***SPAM*** [PATCH][TRIVIAL] libibmad/dump.c: Cosmetic formatting changes
Hal Rosenstock
hnrose at comcast.net
Tue Mar 24 05:16:42 PDT 2009
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/libibmad/src/dump.c b/libibmad/src/dump.c
index 4f71615..051c708 100644
--- a/libibmad/src/dump.c
+++ b/libibmad/src/dump.c
@@ -703,16 +703,20 @@ void mad_dump_perfcounters_xmt_sl(char *buf, int bufsz, void *val, int valsz)
{
int cnt;
- cnt = _dump_fields(buf, bufsz, val, IB_PC_EXT_PORT_SELECT_F, IB_PC_EXT_XMT_BYTES_F);
- _dump_fields(buf + cnt, bufsz - cnt, val, IB_PC_XMT_DATA_SL_FIRST_F, IB_PC_XMT_DATA_SL_LAST_F);
+ cnt = _dump_fields(buf, bufsz, val, IB_PC_EXT_PORT_SELECT_F,
+ IB_PC_EXT_XMT_BYTES_F);
+ _dump_fields(buf + cnt, bufsz - cnt, val, IB_PC_XMT_DATA_SL_FIRST_F,
+ IB_PC_XMT_DATA_SL_LAST_F);
}
void mad_dump_perfcounters_rcv_sl(char *buf, int bufsz, void *val, int valsz)
{
int cnt;
- cnt = _dump_fields(buf, bufsz, val, IB_PC_EXT_PORT_SELECT_F, IB_PC_EXT_XMT_BYTES_F);
- _dump_fields(buf + cnt, bufsz - cnt, val, IB_PC_RCV_DATA_SL_FIRST_F, IB_PC_RCV_DATA_SL_LAST_F);
+ cnt = _dump_fields(buf, bufsz, val, IB_PC_EXT_PORT_SELECT_F,
+ IB_PC_EXT_XMT_BYTES_F);
+ _dump_fields(buf + cnt, bufsz - cnt, val, IB_PC_RCV_DATA_SL_FIRST_F,
+ IB_PC_RCV_DATA_SL_LAST_F);
}
void xdump(FILE * file, char *msg, void *p, int size)
@@ -737,7 +741,6 @@ void xdump(FILE * file, char *msg, void *p, int size)
fputc('\n', file);
cp += 2;
}
- if (i % 16) {
+ if (i % 16)
fputc('\n', file);
- }
}
More information about the general
mailing list