[ofa-general] [PATCH] ibsim/sim_mad.c: Cosmetic changes
Hal Rosenstock
hal.rosenstock at gmail.com
Fri Jul 25 06:05:52 PDT 2008
ibsim/sim_mad.c: Cosmetic changes
Fix typo in IBWARN message
Make attribute ID format consistent (in hex)
Also, other cosmetic formatting change
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
diff --git a/ibsim/sim_mad.c b/ibsim/sim_mad.c
index 35417fd..b8ce2ab 100644
--- a/ibsim/sim_mad.c
+++ b/ibsim/sim_mad.c
@@ -1130,7 +1130,7 @@ Smpfn *get_handle_fn(ib_rpc_t rpc, int response)
return fn;
}
- return 0; // No MGTCLASS matched .
+ return 0; // No MGTCLASS matched.
}
int process_packet(Client * cl, void *p, int size, Client ** dcl)
@@ -1182,7 +1182,7 @@ int process_packet(Client * cl, void *p, int size, Client
rpc.mgtclass, rpc.attr.id);
goto _dropped;
}
- VERB("forward pkt to client %d pid %d attr %d",
+ VERB("forward pkt to client %d pid %d attr 0x%x",
(*dcl)->id, (*dcl)->pid, rpc.attr.id);
forward_MAD(r->mad, &rpc, &path);
return sizeof(*r); // forward only
@@ -1289,7 +1289,7 @@ int send_trap(Port * port, int trapnum)
Port *destport;
if (!encode_trapfn) {
- IBWARN("trap number %d not upported", trapnum);
+ IBWARN("trap number %d not supported", trapnum);
return -1;
}
More information about the general
mailing list