* Subject: [PATCH] cfi: print size in human readable format
@ 2014-09-23 7:02 Franck Jullien
2014-09-23 7:03 ` Franck Jullien
0 siblings, 1 reply; 3+ messages in thread
From: Franck Jullien @ 2014-09-23 7:02 UTC (permalink / raw)
To: barebox
From: Franck Jullien <franck.jullien@gmail.com>
The CFI size is now printed in a human readable format.
It also adds "0x" prefix to the printed address.
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
---
drivers/mtd/nor/cfi_flash.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c
index a494063..0fa41bf 100644
--- a/drivers/mtd/nor/cfi_flash.c
+++ b/drivers/mtd/nor/cfi_flash.c
@@ -1000,8 +1000,8 @@ static int cfi_probe (struct device_d *dev)
return -ENODEV;
}
- dev_info(dev, "found cfi flash at %p, size %ld\n",
- info->base, info->size);
+ dev_info(dev, "found cfi flash at 0x%p, size %s\n",
+ info->base, size_human_readable(info->size));
dev->info = cfi_info;
--
2.1.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Subject: [PATCH] cfi: print size in human readable format
2014-09-23 7:02 Subject: [PATCH] cfi: print size in human readable format Franck Jullien
@ 2014-09-23 7:03 ` Franck Jullien
2014-09-24 4:45 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Franck Jullien @ 2014-09-23 7:03 UTC (permalink / raw)
To: barebox
Not sure the patch format is ok. It sent it from my webmail (I'm not
able to use git send-email here).
Franck.
2014-09-23 9:02 GMT+02:00 Franck Jullien <franck.jullien@gmail.com>:
> From: Franck Jullien <franck.jullien@gmail.com>
>
> The CFI size is now printed in a human readable format.
> It also adds "0x" prefix to the printed address.
>
> Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
> ---
> drivers/mtd/nor/cfi_flash.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c
> index a494063..0fa41bf 100644
> --- a/drivers/mtd/nor/cfi_flash.c
> +++ b/drivers/mtd/nor/cfi_flash.c
> @@ -1000,8 +1000,8 @@ static int cfi_probe (struct device_d *dev)
> return -ENODEV;
> }
>
> - dev_info(dev, "found cfi flash at %p, size %ld\n",
> - info->base, info->size);
> + dev_info(dev, "found cfi flash at 0x%p, size %s\n",
> + info->base, size_human_readable(info->size));
>
> dev->info = cfi_info;
>
> --
> 2.1.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Subject: [PATCH] cfi: print size in human readable format
2014-09-23 7:03 ` Franck Jullien
@ 2014-09-24 4:45 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-09-24 4:45 UTC (permalink / raw)
To: Franck Jullien; +Cc: barebox
Hi Franck,
On Tue, Sep 23, 2014 at 09:03:58AM +0200, Franck Jullien wrote:
> Not sure the patch format is ok. It sent it from my webmail (I'm not
> able to use git send-email here).
The patch has tabs converted to spaces. I applied it manually.
Thanks
Sascha
>
> Franck.
>
> 2014-09-23 9:02 GMT+02:00 Franck Jullien <franck.jullien@gmail.com>:
> > From: Franck Jullien <franck.jullien@gmail.com>
> >
> > The CFI size is now printed in a human readable format.
> > It also adds "0x" prefix to the printed address.
> >
> > Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
> > ---
> > drivers/mtd/nor/cfi_flash.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/mtd/nor/cfi_flash.c b/drivers/mtd/nor/cfi_flash.c
> > index a494063..0fa41bf 100644
> > --- a/drivers/mtd/nor/cfi_flash.c
> > +++ b/drivers/mtd/nor/cfi_flash.c
> > @@ -1000,8 +1000,8 @@ static int cfi_probe (struct device_d *dev)
> > return -ENODEV;
> > }
> >
> > - dev_info(dev, "found cfi flash at %p, size %ld\n",
> > - info->base, info->size);
> > + dev_info(dev, "found cfi flash at 0x%p, size %s\n",
> > + info->base, size_human_readable(info->size));
> >
> > dev->info = cfi_info;
> >
> > --
> > 2.1.0
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-24 4:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-23 7:02 Subject: [PATCH] cfi: print size in human readable format Franck Jullien
2014-09-23 7:03 ` Franck Jullien
2014-09-24 4:45 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox