Przeglądaj źródła

[infiniband] Use "%d" as format specifier for LIDs

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 lat temu
rodzic
commit
36c4779356
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 1
    1
      src/net/infiniband/ib_pathrec.c
  2. 3
    3
      src/net/infiniband/ib_sma.c

+ 1
- 1
src/net/infiniband/ib_pathrec.c Wyświetl plik

@@ -71,7 +71,7 @@ static void ib_path_complete ( struct ib_device *ibdev,
71 71
 	path->av.lid = ntohs ( pathrec->dlid );
72 72
 	path->av.sl = ( pathrec->reserved__sl & 0x0f );
73 73
 	path->av.rate = ( pathrec->rate_selector__rate & 0x3f );
74
-	DBGC ( ibdev, "IBDEV %s path to " IB_GID_FMT " is %04x sl %d rate "
74
+	DBGC ( ibdev, "IBDEV %s path to " IB_GID_FMT " lid %d sl %d rate "
75 75
 	       "%d\n", ibdev->name, IB_GID_ARGS ( dgid ), path->av.lid,
76 76
 	       path->av.sl, path->av.rate );
77 77
 

+ 3
- 3
src/net/infiniband/ib_sma.c Wyświetl plik

@@ -176,9 +176,9 @@ static int ib_sma_set_port_info ( struct ib_device *ibdev,
176 176
 	       ( port_info->link_speed_active__link_speed_enabled & 0xf ) ) )
177 177
 		ibdev->link_speed_enabled = link_speed_enabled;
178 178
 	ibdev->sm_sl = ( port_info->neighbour_mtu__mastersm_sl & 0xf );
179
-	DBGC ( mi, "SMA %p set LID %04x SMLID %04x link width %02x speed "
180
-	       "%02x\n", mi, ibdev->lid, ibdev->sm_lid,
181
-	       ibdev->link_width_enabled, ibdev->link_speed_enabled );
179
+	DBGC ( mi, "SMA %p set LID %d SMLID %d link width %d speed %d\n",
180
+	       mi, ibdev->lid, ibdev->sm_lid, ibdev->link_width_enabled,
181
+	       ibdev->link_speed_enabled );
182 182
 
183 183
 	/* Update parameters on device */
184 184
 	if ( ( rc = ib_set_port_info ( ibdev, mad ) ) != 0 ) {

Ładowanie…
Anuluj
Zapisz