Re: [PATCH] x86: small unifications of address printing

Andi Kleen
2008-07-01T18:58:18Z

> Yes, it will, and correctly too:
>
> case 'p':
> flags |= SMALL;
> if (field_width == -1) {
> field_width = 2*sizeof(void *);
> flags |= ZEROPAD;
> }
>
> Or did I read this code wrong? field_width is initialized to -1 by
> default unless overridden. The SMALL flag means lowercase hexadecimal
> digits.

You're right. The kernel differs from user space/traditional behaviour
in this regard.

-Andi