Messages in this thread | | | From | Frans Pop <> | Subject | Re: [RFC PATCHv2] printk: add the %pM, %p4, %p6 format specifiers | Date | Mon, 27 Oct 2008 02:21:06 +0100 |
| |
Harvey Harrison wrote: > diff --git a/lib/vsprintf.c b/lib/vsprintf.c > index a013bbc..eec3879 100644 > --- a/lib/vsprintf.c > +++ b/lib/vsprintf.c > @@ -592,6 +644,12 @@ static char *resource_string(char *buf, char *end, > struct resource *res, int fie > * - 'S' For symbolic direct pointers > * - 'R' For a struct resource pointer, it prints the range of > * addresses (not the name nor the flags) > + * - 'M' For a 6-byte MAC address, it prints the address in the > + * usual colon-separated hex notation > + * - '4' For a 4-byte IPv4 address, it prints the address in the > + * usual colon-separated hex notation > + * - 'M' For a 16-byte IPv6 address, it prints the address in colon separated > + * big-endian 16 bit hex notation
Shouldn't that last one be '6' instead of 'M'?
| |