Skip to contentSkip to conversation

fields.c: Print SwitchPortCongestionSetting:Threshold in decimal rather than hex

PATCH Superseded Hal Rosenstock 1 participant 1 message Jan 8, 2015 InfiniBand

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fields.c: Print SwitchPortCongestionSetting:Threshold in decimal rather than hex

for consistency with printing of SwitchCongestionSetting:Threshold

---

src/fields.c +1 -1
index 33a6364..99f144d 100644
@@ -870,7 +870,7 @@ static const ib_field_t ib_mad_f[] = {
 	 */
 	{BITSOFFS(0, 1), "Valid", mad_dump_uint},
 	{BITSOFFS(1, 1), "Control_Type", mad_dump_uint},
-	{BITSOFFS(4, 4), "Threshold", mad_dump_hex},
+	{BITSOFFS(4, 4), "Threshold", mad_dump_uint},
 	{BITSOFFS(8, 8), "Packet_Size", mad_dump_uint},
 	{BITSOFFS(16, 16), "Cong_Parm_Marking_Rate", mad_dump_uint},
 	{0, 0},			/* IB_CC_SWITCH_PORT_CONGESTION_SETTING_ELEMENT_LAST_F */

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html