Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- From: "H. Peter Anvin" <hpa@xxxxxxxxx>
- Date: Sun, 29 Sep 2013 08:44:56 -0700
- Cc: Ingo Molnar <mingo@xxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, huawei.libin@xxxxxxxxxx, wangyijing@xxxxxxxxxx, fenghua.yu@xxxxxxxxx, tglx@xxxxxxxxxxxxx, guohanjun@xxxxxxxxxx, paul.gortmaker@xxxxxxxxxxxxx, linux-tip-commits@xxxxxxxxxxxxxxx
- In-reply-to: <20130929091453.GA5426@pd.tnic>
- User-agent: K-9 Mail for Android
If the goal is to feed this to the field width in printf, which I would think would be the dominant use, then you do have to account for the minus sign.
Borislav Petkov <bp@xxxxxxxxx> wrote:
>On Sat, Sep 28, 2013 at 04:13:29PM -0700, H. Peter Anvin wrote:
>> For negative numbers presumably we need to d++ for the minus sign,
>no?
>
>That's easy - the function is called num_digits, so we count only
>digits.
>
>The real question is, is there a use case where we would need to count
>the sign too or only the digits?
>
>And since I can't be clairvoyant, I'll leave it to future generations
>to
>decide what to do with the sign.
>
>:-)
--
Sent from my mobile phone. Please pardon brevity and lack of formatting.
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
- References:
- [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
- Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]