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>
This commit is contained in:

committed by
David S. Miller

parent
21454aaad3
commit
63779436ab
@@ -206,8 +206,7 @@ static int qla4xxx_conn_get_param(struct iscsi_cls_conn *conn,
|
||||
break;
|
||||
case ISCSI_PARAM_CONN_ADDRESS:
|
||||
/* TODO: what are the ipv6 bits */
|
||||
len = sprintf(buf, "%u.%u.%u.%u\n",
|
||||
NIPQUAD(ddb_entry->ip_addr));
|
||||
len = sprintf(buf, "%pI4\n", &ddb_entry->ip_addr);
|
||||
break;
|
||||
default:
|
||||
return -ENOSYS;
|
||||
|
Reference in New Issue
Block a user