[ofa-general] [PATCH] infiniband-diags/saquery.c: Display attribute ID in hex rather than decimal

Hal Rosenstock hnrose at comcast.net
Mon Apr 27 11:17:53 PDT 2009


for easier correlation to IBA spec

Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
index dddebc1..4dcd712 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -163,7 +163,7 @@ recv_mad:
 			umad = realloc(umad, umad_size() + len);
 			goto recv_mad;
 		}
-		IBPANIC("umad_recv failed: attr %u: %s\n", attr,
+		IBPANIC("umad_recv failed: attr 0x%x: %s\n", attr,
 			strerror(errno));
 	}
 



More information about the general mailing list