mtd: cfi_cmdset_0002: Fix argument order in bootloc warning

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri May 14 04:59:01 EDT 2010


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=abab7ebf8cc12a6bb03d06b103a49e97276168f0
Commit:     abab7ebf8cc12a6bb03d06b103a49e97276168f0
Parent:     f6b173cc9d73c00a3182ec3fdb0f03909cad4b5b
Author:     David Woodhouse <David.Woodhouse at intel.com>
AuthorDate: Fri May 14 09:14:24 2010 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri May 14 09:14:27 2010 +0100

    mtd: cfi_cmdset_0002: Fix argument order in bootloc warning
    
    Doh. Pointed out by Guillaume LECERF <glecerf at gmail.com> since I managed
    to miss it in my test builds. S'what I get for hacking at 2am, I suppose.
    
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/chips/cfi_cmdset_0002.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c
index 0e21b09..87e86e9 100644
--- a/drivers/mtd/chips/cfi_cmdset_0002.c
+++ b/drivers/mtd/chips/cfi_cmdset_0002.c
@@ -442,7 +442,7 @@ struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary)
 			if ((bootloc < 2) || (bootloc > 5)) {
 				printk(KERN_WARNING "%s: CFI contains unrecognised boot "
 				       "bank location (%d). Assuming bottom.\n",
-				       bootloc, map->name);
+				       map->name, bootloc);
 				bootloc = 2;
 			}
 



More information about the linux-mtd-cvs mailing list