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: Andrew Morton
Date: Tuesday, September 2, 2008 - 8:39 pm

On Sun, 31 Aug 2008 10:13:54 -0500 James Bottomley <James.Bottomley@HansenPartnership.com> wrote:


As Matthew said - a new %p thingy might be appropriate.


Could do with some comments.


Formally these should be static, but I expect the compiler will work it out.



Can't print a u64 - we don't know what type it has.  It must be cast to
something, usually unsigned long long.


--
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 ..., Andrew Morton, (Tue Sep 2, 8:39 pm)