diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-31 03:56:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-31 03:56:00 -0400 |
commit | 63779436ab4ad0867bcea53bf853b0004d7b895d (patch) | |
tree | bd4e49449eb852a54f62cc8bb1c807e26746dd43 /drivers/infiniband/ulp | |
parent | 21454aaad30651ba0dcc16fe5271bc12ee21f132 (diff) |
drivers: replace NIPQUAD()
Using NIPQUAD() with NIPQUAD_FMT, %d.%d.%d.%d or %u.%u.%u.%u
can be replaced with %pI4
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/ulp')
-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 26ff6214a81f..e418b960e334 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 | ||