diff for duplicates of <51CB2477.6070903@gmail.com> diff --git a/a/1.txt b/N1/1.txt index 440936f..2322ff9 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,7 +2,7 @@ On 06/26/2013 01:01 PM, Daniel Borkmann wrote: > In order to avoid making code that deals with printing both, IPv4 and > IPv6 addresses, unnecessary complicated as for example ... > -> if (sa.sa_family = AF_INET6) +> if (sa.sa_family == AF_INET6) > printk("... %pI6 ...", sin6_addr); > else > printk("... %pI4 ...", sin_addr.s_addr); @@ -57,7 +57,7 @@ I think you should also update Documentation/printk-formats.txt > + { > + const struct sockaddr *sa = ptr; > + -> + if (sa->sa_family = AF_INET6) { +> + if (sa->sa_family == AF_INET6) { > + ptr = &((struct sockaddr_in6 *) sa)->sin6_addr; > + return ip6_addr_string(buf, end, ptr, spec, fmt); > + } else { diff --git a/a/content_digest b/N1/content_digest index 195210a..1b9cdac 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -2,7 +2,7 @@ "ref\01372266073-11998-2-git-send-email-dborkman@redhat.com\0" "From\0Vlad Yasevich <vyasevich@gmail.com>\0" "Subject\0Re: [PATCH net-next 1/2] lib: vsprintf: add IPv4/v6 generic %pig/%pIg format specifier\0" - "Date\0Wed, 26 Jun 2013 17:27:19 +0000\0" + "Date\0Wed, 26 Jun 2013 13:27:19 -0400\0" "To\0Daniel Borkmann <dborkman@redhat.com>\0" "Cc\0davem@davemloft.net" netdev@vger.kernel.org @@ -13,7 +13,7 @@ "> In order to avoid making code that deals with printing both, IPv4 and\n" "> IPv6 addresses, unnecessary complicated as for example ...\n" ">\n" - "> if (sa.sa_family = AF_INET6)\n" + "> if (sa.sa_family == AF_INET6)\n" "> printk(\"... %pI6 ...\", sin6_addr);\n" "> else\n" "> printk(\"... %pI4 ...\", sin_addr.s_addr);\n" @@ -68,7 +68,7 @@ "> +\t\t\t{\n" "> +\t\t\t\tconst struct sockaddr *sa = ptr;\n" "> +\n" - "> +\t\t\t\tif (sa->sa_family = AF_INET6) {\n" + "> +\t\t\t\tif (sa->sa_family == AF_INET6) {\n" "> +\t\t\t\t\tptr = &((struct sockaddr_in6 *) sa)->sin6_addr;\n" "> +\t\t\t\t\treturn ip6_addr_string(buf, end, ptr, spec, fmt);\n" "> +\t\t\t\t} else {\n" @@ -90,4 +90,4 @@ "> * %*ph[CDN] a variable-length hex string with a separator (supports up to 64\n" > -b283c0b70c46367fa56c19799d298c8dff784ff318586a4dac5e5d542f3db709 +a67d44957b8ad480fb2183bbb0c57b5a753a3b5aa271ac198bc301267c1607f0
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.