diff options
Diffstat (limited to 'drivers/infiniband/ulp/iser')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_verbs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c index 26ff6214a81..e418b960e33 100644 --- a/drivers/infiniband/ulp/iser/iser_verbs.c +++ b/drivers/infiniband/ulp/iser/iser_verbs.c | |||
@@ -515,14 +515,14 @@ int iser_connect(struct iser_conn *ib_conn, | |||
515 | struct sockaddr *src, *dst; | 515 | struct sockaddr *src, *dst; |
516 | int err = 0; | 516 | int err = 0; |
517 | 517 | ||
518 | sprintf(ib_conn->name,"%d.%d.%d.%d:%d", | 518 | sprintf(ib_conn->name, "%pI4:%d", |
519 | NIPQUAD(dst_addr->sin_addr.s_addr), dst_addr->sin_port); | 519 | &dst_addr->sin_addr.s_addr, dst_addr->sin_port); |
520 | 520 | ||
521 | /* the device is known only --after-- address resolution */ | 521 | /* the device is known only --after-- address resolution */ |
522 | ib_conn->device = NULL; | 522 | ib_conn->device = NULL; |
523 | 523 | ||
524 | iser_err("connecting to: %d.%d.%d.%d, port 0x%x\n", | 524 | iser_err("connecting to: %pI4, port 0x%x\n", |
525 | NIPQUAD(dst_addr->sin_addr), dst_addr->sin_port); | 525 | &dst_addr->sin_addr, dst_addr->sin_port); |
526 | 526 | ||
527 | ib_conn->state = ISER_CONN_PENDING; | 527 | ib_conn->state = ISER_CONN_PENDING; |
528 | 528 | ||