Messages in this thread | | | Date | Sat, 28 Sep 2013 21:54:48 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH -v1.1] x86, boot: Further compress CPUs bootup message |
| |
On Sat, Sep 28, 2013 at 09:49:27PM +0200, Borislav Petkov wrote: > And yes, that one works too.
Btw, just to be thorough, we could handle negative numbers too:
int num_digits(int val) { int m = 10; int d = 1;
if (val < 0) val = -val;
while (val >= m) { m *= 10; d++; }
return d; }
-- Regards/Gruss, Boris.
Sent from a fat crate under my desk. Formatting is fine. --
| |