]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/firmware/iscsi_ibft.c
drivers: replace NIPQUAD()
[linux-2.6-omap-h63xx.git] / drivers / firmware / iscsi_ibft.c
index acb82aff8808d6cf40e9a9a5b18e4454c99c1486..3ab3e4a41d670f48af0583c841dae8a6d040748f 100644 (file)
@@ -284,8 +284,7 @@ static ssize_t sprintf_ipaddr(char *buf, u8 *ip)
                /*
                 * IPV4
                 */
-               str += sprintf(buf, NIPQUAD_FMT, ip[12],
-                              ip[13], ip[14], ip[15]);
+               str += sprintf(buf, "%pI4", ip + 12);
        } else {
                /*
                 * IPv6