diff options
author | Michael Brown | 2016-03-08 10:11:15 +0100 |
---|---|---|
committer | Michael Brown | 2016-03-08 13:08:58 +0100 |
commit | 36c477935642dfd40d816348c384a7cd35d7b78b (patch) | |
tree | f5c620bb42a8400b16e46621a848da968cf00f91 /src/net/infiniband | |
parent | [infiniband] Use "%#lx" as format specifier for queue pair numbers (diff) | |
download | ipxe-36c477935642dfd40d816348c384a7cd35d7b78b.tar.gz ipxe-36c477935642dfd40d816348c384a7cd35d7b78b.tar.xz ipxe-36c477935642dfd40d816348c384a7cd35d7b78b.zip |
[infiniband] Use "%d" as format specifier for LIDs
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/infiniband')
-rw-r--r-- | src/net/infiniband/ib_pathrec.c | 2 | ||||
-rw-r--r-- | src/net/infiniband/ib_sma.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/infiniband/ib_pathrec.c b/src/net/infiniband/ib_pathrec.c index 287c25c7..113b90bd 100644 --- a/src/net/infiniband/ib_pathrec.c +++ b/src/net/infiniband/ib_pathrec.c @@ -71,7 +71,7 @@ static void ib_path_complete ( struct ib_device *ibdev, path->av.lid = ntohs ( pathrec->dlid ); path->av.sl = ( pathrec->reserved__sl & 0x0f ); path->av.rate = ( pathrec->rate_selector__rate & 0x3f ); - DBGC ( ibdev, "IBDEV %s path to " IB_GID_FMT " is %04x sl %d rate " + DBGC ( ibdev, "IBDEV %s path to " IB_GID_FMT " lid %d sl %d rate " "%d\n", ibdev->name, IB_GID_ARGS ( dgid ), path->av.lid, path->av.sl, path->av.rate ); diff --git a/src/net/infiniband/ib_sma.c b/src/net/infiniband/ib_sma.c index c4d0b2c5..24ec9f4e 100644 --- a/src/net/infiniband/ib_sma.c +++ b/src/net/infiniband/ib_sma.c @@ -176,9 +176,9 @@ static int ib_sma_set_port_info ( struct ib_device *ibdev, ( port_info->link_speed_active__link_speed_enabled & 0xf ) ) ) ibdev->link_speed_enabled = link_speed_enabled; ibdev->sm_sl = ( port_info->neighbour_mtu__mastersm_sl & 0xf ); - DBGC ( mi, "SMA %p set LID %04x SMLID %04x link width %02x speed " - "%02x\n", mi, ibdev->lid, ibdev->sm_lid, - ibdev->link_width_enabled, ibdev->link_speed_enabled ); + DBGC ( mi, "SMA %p set LID %d SMLID %d link width %d speed %d\n", + mi, ibdev->lid, ibdev->sm_lid, ibdev->link_width_enabled, + ibdev->link_speed_enabled ); /* Update parameters on device */ if ( ( rc = ib_set_port_info ( ibdev, mad ) ) != 0 ) { |