lkml.org 
[lkml]   [2003]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Minor fix for wrong format in drivers/mtd/inftlcore.c (2.6.0-test7)

Hi,

Here's a small patch for a very minor issue :

drivers/mtd/inftlcore.c: In function `inftl_writeblock':
drivers/mtd/inftlcore.c:761: warning: int format, long unsigned int arg (arg 3)
drivers/mtd/inftlcore.c:761: warning: int format, long unsigned int arg (arg 3)
drivers/mtd/inftlcore.c: In function `inftl_readblock':
drivers/mtd/inftlcore.c:807: warning: int format, long unsigned int arg (arg 3)
drivers/mtd/inftlcore.c:807: warning: int format, long unsigned int arg (arg 3)

This patch should fix that (against 2.6.0-test7):

--- linux-2.6.0-test7-orig/drivers/mtd/inftlcore.c 2003-10-08 21:24:01.000000000 +0200
+++ linux-2.6.0-test7/drivers/mtd/inftlcore.c 2003-10-16 20:15:29.000000000 +0200
@@ -757,7 +757,7 @@ static int inftl_writeblock(struct mtd_b
u8 eccbuf[6];
char *p, *pend;

- DEBUG(MTD_DEBUG_LEVEL3, "INFTL: inftl_writeblock(inftl=0x%x,block=%d,"
+ DEBUG(MTD_DEBUG_LEVEL3, "INFTL: inftl_writeblock(inftl=0x%x,block=%ld,"
"buffer=0x%x)\n", (int)inftl, block, (int)buffer);

/* Is block all zero? */
@@ -803,7 +803,7 @@ static int inftl_readblock(struct mtd_bl
struct inftl_bci bci;
size_t retlen;

- DEBUG(MTD_DEBUG_LEVEL3, "INFTL: inftl_readblock(inftl=0x%x,block=%d,"
+ DEBUG(MTD_DEBUG_LEVEL3, "INFTL: inftl_readblock(inftl=0x%x,block=%ld,"
"buffer=0x%x)\n", (int)inftl, block, (int)buffer);

while (thisEUN < inftl->nb_blocks) {


Hopefully this is useful.


Kind regards,

Jesper Juhl <juhl-lkml@dif.dk>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.019 / U:1.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site