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

From: Andi Kleen
Date: Tue Jul 01 2008 - 14:58:20 EST



> 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
--
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/