aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2010-05-17 01:55:24 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-05-17 02:01:41 -0400
commit11c93605faecfe6f9a28a6f3d14989bad077055a (patch)
tree33c0b9dc50b786f2731198c75b6cc083f3c78301 /drivers/mtd
parentd80f2666b5373f195deae57c9f33a5abb8053d37 (diff)
mtd/maps/pcmciamtd: Fix printk format for ssize_t in debug messages
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/maps/pcmciamtd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c
index c4aacbfe288d..a975f2a1bb9b 100644
--- a/drivers/mtd/maps/pcmciamtd.c
+++ b/drivers/mtd/maps/pcmciamtd.c
@@ -161,7 +161,7 @@ static void pcmcia_copy_from_remap(struct map_info *map, void *to, unsigned long
161 struct pcmciamtd_dev *dev = (struct pcmciamtd_dev *)map->map_priv_1; 161 struct pcmciamtd_dev *dev = (struct pcmciamtd_dev *)map->map_priv_1;
162 unsigned long win_size = dev->win_size; 162 unsigned long win_size = dev->win_size;
163 163
164 DEBUG(3, "to = %p from = %lu len = %u", to, from, len); 164 DEBUG(3, "to = %p from = %lu len = %zd", to, from, len);
165 while(len) { 165 while(len) {
166 int toread = win_size - (from & (win_size-1)); 166 int toread = win_size - (from & (win_size-1));
167 caddr_t addr; 167 caddr_t addr;
@@ -210,7 +210,7 @@ static void pcmcia_copy_to_remap(struct map_info *map, unsigned long to, const v
210 struct pcmciamtd_dev *dev = (struct pcmciamtd_dev *)map->map_priv_1; 210 struct pcmciamtd_dev *dev = (struct pcmciamtd_dev *)map->map_priv_1;
211 unsigned long win_size = dev->win_size; 211 unsigned long win_size = dev->win_size;
212 212
213 DEBUG(3, "to = %lu from = %p len = %u", to, from, len); 213 DEBUG(3, "to = %lu from = %p len = %zd", to, from, len);
214 while(len) { 214 while(len) {
215 int towrite = win_size - (to & (win_size-1)); 215 int towrite = win_size - (to & (win_size-1));
216 caddr_t addr; 216 caddr_t addr;
@@ -272,7 +272,7 @@ static void pcmcia_copy_from(struct map_info *map, void *to, unsigned long from,
272 if(DEV_REMOVED(map)) 272 if(DEV_REMOVED(map))
273 return; 273 return;
274 274
275 DEBUG(3, "to = %p from = %lu len = %u", to, from, len); 275 DEBUG(3, "to = %p from = %lu len = %zd", to, from, len);
276 memcpy_fromio(to, win_base + from, len); 276 memcpy_fromio(to, win_base + from, len);
277} 277}
278 278
@@ -310,7 +310,7 @@ static void pcmcia_copy_to(struct map_info *map, unsigned long to, const void *f
310 if(DEV_REMOVED(map)) 310 if(DEV_REMOVED(map))
311 return; 311 return;
312 312
313 DEBUG(3, "to = %lu from = %p len = %u", to, from, len); 313 DEBUG(3, "to = %lu from = %p len = %zd", to, from, len);
314 memcpy_toio(win_base + to, from, len); 314 memcpy_toio(win_base + to, from, len);
315} 315}
316 316