Re: [PATCH 1/2] lib: add generic helper to print sizes rounded to the correct SI range

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Bottomley
Date: Wednesday, September 3, 2008 - 7:32 am

On Tue, 2008-09-02 at 20:39 -0700, Andrew Morton wrote:

Yes ... I thought about that.  Two things I don't like about the
approach are:

     1. It adds to the confetti of letters vsnprintf already accepts ...
        it's becoming like ls, and we're soon going to run out of
        alphabet
     2. I'd probably have to plumb in precision and things, which make
        the code a bit nastier.

I'm not sure the advantages (use in all our prints) outweighs this.


Sure, will add.


As long as I have everything correctly const'd, the optimisations
available should be similar, yes.


I thought there was a patch from Matthew to move u64 to unsigned long
long on all architectures, thus obviating this annoying conversion ...
is that still wandering upstream, or has it been dropped?


James


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] scsi/sd: Fix size output in MB, Simon Arlott, (Sat Aug 30, 7:08 am)
Re: [PATCH] scsi/sd: Fix size output in MB, James Bottomley, (Sat Aug 30, 10:24 am)
Re: [PATCH] scsi/sd: Fix size output in MB, Matthew Wilcox, (Sat Aug 30, 10:45 am)
Re: [PATCH] scsi/sd: Fix size output in MB, Pierre Ossman, (Sat Aug 30, 1:59 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Simon Arlott, (Sat Aug 30, 2:02 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, James Bottomley, (Sat Aug 30, 2:45 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Matthew Wilcox, (Sat Aug 30, 2:57 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Pierre Ossman, (Sat Aug 30, 3:13 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Simon Arlott, (Sat Aug 30, 3:22 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Simon Arlott, (Sat Aug 30, 3:24 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, Matthew Wilcox, (Sat Aug 30, 3:36 pm)
Re: [PATCH] scsi/sd: Fix size output in MB, James Smart, (Sun Aug 31, 5:27 am)
[PATCH] mmc_block: use generic helper to print capacities, Pierre Ossman, (Sun Aug 31, 11:54 am)
Re: [PATCH 1/2] lib: add generic helper to print sizes rou ..., James Bottomley, (Wed Sep 3, 7:32 am)