Merge branch 'topic/sscape-fix' into for-linus
[linux-block.git] / drivers / scsi / qla4xxx / ql4_os.c
index db7ea3bb4e833afb50884b92c74f1b98c4b5d6ec..eb3a414b189a111f8110385440c0911300085210 100644 (file)
@@ -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;