From: Franck Jullien <franck.jullien@gmail.com>
To: barebox <barebox@lists.infradead.org>
Subject: Subject: [PATCH] cfi: print size in human readable format
Date: Tue, 23 Sep 2014 09:02:37 +0200 [thread overview]
Message-ID: <CAJfOKBzn+6WKzQtBN62Z8Uxb1U=wnadzJ-BPeQ5v5tEchdJmTg@mail.gmail.com> (raw)
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
next reply other threads:[~2014-09-23 7:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 7:02 Franck Jullien [this message]
2014-09-23 7:03 ` Franck Jullien
2014-09-24 4:45 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJfOKBzn+6WKzQtBN62Z8Uxb1U=wnadzJ-BPeQ5v5tEchdJmTg@mail.gmail.com' \
--to=franck.jullien@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox