public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Jonas Gorski <jonas.gorski@gmail.com>
To: linux-mtd@lists.infradead.org
Cc: Maxime Bizon <mbizon@freebox.fr>,
	Kevin Cernekee <cernekee@gmail.com>,
	David Woodhouse <dwmw2@infradead.org>,
	Florian Fainelli <florian@openwrt.org>,
	Artem Bityutskiy <dedekind1@gmail.com>
Subject: [PATCH 5/5] MTD: bcm63xxpart: use correct printk format for partitions
Date: Mon, 12 Nov 2012 10:52:51 +0100	[thread overview]
Message-ID: <1352713971-1685-6-git-send-email-jonas.gorski@gmail.com> (raw)
In-Reply-To: <1352713971-1685-1-git-send-email-jonas.gorski@gmail.com>

Use ll to be able to remove the casts.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---
 drivers/mtd/bcm63xxpart.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/bcm63xxpart.c b/drivers/mtd/bcm63xxpart.c
index 44cba4e..6eeb84c 100644
--- a/drivers/mtd/bcm63xxpart.c
+++ b/drivers/mtd/bcm63xxpart.c
@@ -198,9 +198,8 @@ static int bcm63xx_parse_cfe_partitions(struct mtd_info *master,
 	parts[curpart].size = master->size - cfelen - nvramlen;
 
 	for (i = 0; i < nrparts; i++)
-		pr_info("Partition %d is %s offset %lx and length %lx\n", i,
-			parts[i].name, (long unsigned int)(parts[i].offset),
-			(long unsigned int)(parts[i].size));
+		pr_info("Partition %d is %s offset %llx and length %llx\n", i,
+			parts[i].name, parts[i].offset,	parts[i].size);
 
 	pr_info("Spare partition is offset %x and length %x\n",	spareaddr,
 		sparelen);
-- 
1.7.2.5

  parent reply	other threads:[~2012-11-12  9:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-12  9:52 [PATCH 0/5] MTD: bcm63xxpart: small code cleanup Jonas Gorski
2012-11-12  9:52 ` [PATCH 1/5] MTD: bcm63xxpart: remove unused variable Jonas Gorski
2012-11-12  9:52 ` [PATCH 2/5] MTD: bcm63xxpart: merge sparelen calculation Jonas Gorski
2012-11-12  9:52 ` [PATCH 3/5] MTD: bcm63xxpart: make fixed part length calculation more generic Jonas Gorski
2012-11-12  9:52 ` [PATCH 4/5] MTD: bcm63xxpart: move the last curpart++ to its correct place Jonas Gorski
2012-11-12  9:52 ` Jonas Gorski [this message]
2012-11-12  9:59 ` [PATCH 0/5] MTD: bcm63xxpart: small code cleanup Florian Fainelli
2012-11-21 15:15 ` Artem Bityutskiy

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=1352713971-1685-6-git-send-email-jonas.gorski@gmail.com \
    --to=jonas.gorski@gmail.com \
    --cc=cernekee@gmail.com \
    --cc=dedekind1@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=florian@openwrt.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=mbizon@freebox.fr \
    /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