Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vsprintf: clarify comments for printf_spec flags

Add clues about what the SMALL and SPECIAL flags do.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Bjorn Helgaas and committed by
Linus Torvalds
b89dc5d6 ef0658f3

+2 -2
+2 -2
lib/vsprintf.c
··· 381 381 #define PLUS 4 /* show plus */ 382 382 #define SPACE 8 /* space if plus */ 383 383 #define LEFT 16 /* left justified */ 384 - #define SMALL 32 /* Must be 32 == 0x20 */ 385 - #define SPECIAL 64 /* 0x */ 384 + #define SMALL 32 /* use lowercase in hex (must be 32 == 0x20) */ 385 + #define SPECIAL 64 /* prefix hex with "0x", octal with "0" */ 386 386 387 387 enum format_type { 388 388 FORMAT_TYPE_NONE, /* Just a string part */