Re: [PATCH 1/1] lib/vsprintf.c: "%#o",0 becomes '0' instead of '00'

From: Joe Perches
Date: Sun May 06 2012 - 21:59:33 EST


On Mon, 2012-05-07 at 03:20 +0200, Pierre Carrier wrote:
> number()'s behaviour is slighly changed:
> 0 becomes "0" instead of "00" when using the flag SPECIAL and base 8.
>
> Before:
> Number\Format %o %#o %x %#x
> 0 0 00 0 0x0
> 1 1 01 1 0x1
> 16 20 020 10 0x10
>
> After:
> Number\Format %o %#o %x %#x
> 0 0 0 0 0x0
> 1 1 01 1 0x1
> 16 20 020 10 0x10

If you do this, why not change 0-7 instead of just 0?


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/