diff options
Diffstat (limited to 'drivers/infiniband/ulp/iser/iser_verbs.c')
-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 6dc6b174cdd4..319b188145be 100644 --- a/drivers/infiniband/ulp/iser/iser_verbs.c +++ b/drivers/infiniband/ulp/iser/iser_verbs.c | |||
@@ -516,14 +516,14 @@ int iser_connect(struct iser_conn *ib_conn, | |||
516 | struct sockaddr *src, *dst; | 516 | struct sockaddr *src, *dst; |
517 | int err = 0; | 517 | int err = 0; |
518 | 518 | ||
519 | sprintf(ib_conn->name,"%d.%d.%d.%d:%d", | 519 | sprintf(ib_conn->name, "%pI4:%d", |
520 | NIPQUAD(dst_addr->sin_addr.s_addr), dst_addr->sin_port); | 520 | &dst_addr->sin_addr.s_addr, dst_addr->sin_port); |
521 | 521 | ||
522 | /* the device is known only --after-- address resolution */ | 522 | /* the device is known only --after-- address resolution */ |
523 | ib_conn->device = NULL; | 523 | ib_conn->device = NULL; |
524 | 524 | ||
525 | iser_err("connecting to: %d.%d.%d.%d, port 0x%x\n", | 525 | iser_err("connecting to: %pI4, port 0x%x\n", |
526 | NIPQUAD(dst_addr->sin_addr), dst_addr->sin_port); | 526 | &dst_addr->sin_addr, dst_addr->sin_port); |
527 | 527 | ||
528 | ib_conn->state = ISER_CONN_PENDING; | 528 | ib_conn->state = ISER_CONN_PENDING; |
529 | 529 | ||