diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-18 16:44:19 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 07:36:04 -0400 |
commit | cb53b3b99992b6c548d56cdf47bc710640ee2ee1 (patch) | |
tree | b47772c81b5a2adfbd2ca96bbc4f4b29d8a2e3c3 | |
parent | 35d086b143e52f43a70c85ab86c054cbf1c4ff26 (diff) |
[MTD] replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0001.c | 12 | ||||
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0020.c | 12 | ||||
-rw-r--r-- | drivers/mtd/devices/lart.c | 16 | ||||
-rw-r--r-- | drivers/mtd/devices/m25p80.c | 8 | ||||
-rw-r--r-- | drivers/mtd/maps/bast-flash.c | 4 | ||||
-rw-r--r-- | drivers/mtd/maps/pcmciamtd.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/pmcmsp-flash.c | 2 | ||||
-rw-r--r-- | drivers/mtd/maps/tqm8xxl.c | 6 | ||||
-rw-r--r-- | drivers/mtd/ubi/debug.h | 2 | ||||
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 4 |
10 files changed, 34 insertions, 34 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c index 0080452531d6..81b7767a665a 100644 --- a/drivers/mtd/chips/cfi_cmdset_0001.c +++ b/drivers/mtd/chips/cfi_cmdset_0001.c | |||
@@ -384,7 +384,7 @@ read_pri_intelext(struct map_info *map, __u16 adr) | |||
384 | if (extp_size > 4096) { | 384 | if (extp_size > 4096) { |
385 | printk(KERN_ERR | 385 | printk(KERN_ERR |
386 | "%s: cfi_pri_intelext is too fat\n", | 386 | "%s: cfi_pri_intelext is too fat\n", |
387 | __FUNCTION__); | 387 | __func__); |
388 | return NULL; | 388 | return NULL; |
389 | } | 389 | } |
390 | goto again; | 390 | goto again; |
@@ -641,7 +641,7 @@ static int cfi_intelext_partition_fixup(struct mtd_info *mtd, | |||
641 | if ((1 << partshift) < mtd->erasesize) { | 641 | if ((1 << partshift) < mtd->erasesize) { |
642 | printk( KERN_ERR | 642 | printk( KERN_ERR |
643 | "%s: bad number of hw partitions (%d)\n", | 643 | "%s: bad number of hw partitions (%d)\n", |
644 | __FUNCTION__, numparts); | 644 | __func__, numparts); |
645 | return -EINVAL; | 645 | return -EINVAL; |
646 | } | 646 | } |
647 | 647 | ||
@@ -2013,7 +2013,7 @@ static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, size_t len) | |||
2013 | 2013 | ||
2014 | #ifdef DEBUG_LOCK_BITS | 2014 | #ifdef DEBUG_LOCK_BITS |
2015 | printk(KERN_DEBUG "%s: lock status before, ofs=0x%08llx, len=0x%08X\n", | 2015 | printk(KERN_DEBUG "%s: lock status before, ofs=0x%08llx, len=0x%08X\n", |
2016 | __FUNCTION__, ofs, len); | 2016 | __func__, ofs, len); |
2017 | cfi_varsize_frob(mtd, do_printlockstatus_oneblock, | 2017 | cfi_varsize_frob(mtd, do_printlockstatus_oneblock, |
2018 | ofs, len, NULL); | 2018 | ofs, len, NULL); |
2019 | #endif | 2019 | #endif |
@@ -2023,7 +2023,7 @@ static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, size_t len) | |||
2023 | 2023 | ||
2024 | #ifdef DEBUG_LOCK_BITS | 2024 | #ifdef DEBUG_LOCK_BITS |
2025 | printk(KERN_DEBUG "%s: lock status after, ret=%d\n", | 2025 | printk(KERN_DEBUG "%s: lock status after, ret=%d\n", |
2026 | __FUNCTION__, ret); | 2026 | __func__, ret); |
2027 | cfi_varsize_frob(mtd, do_printlockstatus_oneblock, | 2027 | cfi_varsize_frob(mtd, do_printlockstatus_oneblock, |
2028 | ofs, len, NULL); | 2028 | ofs, len, NULL); |
2029 | #endif | 2029 | #endif |
@@ -2037,7 +2037,7 @@ static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, size_t len) | |||
2037 | 2037 | ||
2038 | #ifdef DEBUG_LOCK_BITS | 2038 | #ifdef DEBUG_LOCK_BITS |
2039 | printk(KERN_DEBUG "%s: lock status before, ofs=0x%08llx, len=0x%08X\n", | 2039 | printk(KERN_DEBUG "%s: lock status before, ofs=0x%08llx, len=0x%08X\n", |
2040 | __FUNCTION__, ofs, len); | 2040 | __func__, ofs, len); |
2041 | cfi_varsize_frob(mtd, do_printlockstatus_oneblock, | 2041 | cfi_varsize_frob(mtd, do_printlockstatus_oneblock, |
2042 | ofs, len, NULL); | 2042 | ofs, len, NULL); |
2043 | #endif | 2043 | #endif |
@@ -2047,7 +2047,7 @@ static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, size_t len) | |||
2047 | 2047 | ||
2048 | #ifdef DEBUG_LOCK_BITS | 2048 | #ifdef DEBUG_LOCK_BITS |
2049 | printk(KERN_DEBUG "%s: lock status after, ret=%d\n", | 2049 | printk(KERN_DEBUG "%s: lock status after, ret=%d\n", |
2050 | __FUNCTION__, ret); | 2050 | __func__, ret); |
2051 | cfi_varsize_frob(mtd, do_printlockstatus_oneblock, | 2051 | cfi_varsize_frob(mtd, do_printlockstatus_oneblock, |
2052 | ofs, len, NULL); | 2052 | ofs, len, NULL); |
2053 | #endif | 2053 | #endif |
diff --git a/drivers/mtd/chips/cfi_cmdset_0020.c b/drivers/mtd/chips/cfi_cmdset_0020.c index 492e2ab27420..669caebba451 100644 --- a/drivers/mtd/chips/cfi_cmdset_0020.c +++ b/drivers/mtd/chips/cfi_cmdset_0020.c | |||
@@ -445,7 +445,7 @@ static inline int do_write_buffer(struct map_info *map, struct flchip *chip, | |||
445 | retry: | 445 | retry: |
446 | 446 | ||
447 | #ifdef DEBUG_CFI_FEATURES | 447 | #ifdef DEBUG_CFI_FEATURES |
448 | printk("%s: chip->state[%d]\n", __FUNCTION__, chip->state); | 448 | printk("%s: chip->state[%d]\n", __func__, chip->state); |
449 | #endif | 449 | #endif |
450 | spin_lock_bh(chip->mutex); | 450 | spin_lock_bh(chip->mutex); |
451 | 451 | ||
@@ -463,7 +463,7 @@ static inline int do_write_buffer(struct map_info *map, struct flchip *chip, | |||
463 | map_write(map, CMD(0x70), cmd_adr); | 463 | map_write(map, CMD(0x70), cmd_adr); |
464 | chip->state = FL_STATUS; | 464 | chip->state = FL_STATUS; |
465 | #ifdef DEBUG_CFI_FEATURES | 465 | #ifdef DEBUG_CFI_FEATURES |
466 | printk("%s: 1 status[%x]\n", __FUNCTION__, map_read(map, cmd_adr)); | 466 | printk("%s: 1 status[%x]\n", __func__, map_read(map, cmd_adr)); |
467 | #endif | 467 | #endif |
468 | 468 | ||
469 | case FL_STATUS: | 469 | case FL_STATUS: |
@@ -591,7 +591,7 @@ static inline int do_write_buffer(struct map_info *map, struct flchip *chip, | |||
591 | /* check for errors: 'lock bit', 'VPP', 'dead cell'/'unerased cell' or 'incorrect cmd' -- saw */ | 591 | /* check for errors: 'lock bit', 'VPP', 'dead cell'/'unerased cell' or 'incorrect cmd' -- saw */ |
592 | if (map_word_bitsset(map, status, CMD(0x3a))) { | 592 | if (map_word_bitsset(map, status, CMD(0x3a))) { |
593 | #ifdef DEBUG_CFI_FEATURES | 593 | #ifdef DEBUG_CFI_FEATURES |
594 | printk("%s: 2 status[%lx]\n", __FUNCTION__, status.x[0]); | 594 | printk("%s: 2 status[%lx]\n", __func__, status.x[0]); |
595 | #endif | 595 | #endif |
596 | /* clear status */ | 596 | /* clear status */ |
597 | map_write(map, CMD(0x50), cmd_adr); | 597 | map_write(map, CMD(0x50), cmd_adr); |
@@ -625,9 +625,9 @@ static int cfi_staa_write_buffers (struct mtd_info *mtd, loff_t to, | |||
625 | ofs = to - (chipnum << cfi->chipshift); | 625 | ofs = to - (chipnum << cfi->chipshift); |
626 | 626 | ||
627 | #ifdef DEBUG_CFI_FEATURES | 627 | #ifdef DEBUG_CFI_FEATURES |
628 | printk("%s: map_bankwidth(map)[%x]\n", __FUNCTION__, map_bankwidth(map)); | 628 | printk("%s: map_bankwidth(map)[%x]\n", __func__, map_bankwidth(map)); |
629 | printk("%s: chipnum[%x] wbufsize[%x]\n", __FUNCTION__, chipnum, wbufsize); | 629 | printk("%s: chipnum[%x] wbufsize[%x]\n", __func__, chipnum, wbufsize); |
630 | printk("%s: ofs[%x] len[%x]\n", __FUNCTION__, ofs, len); | 630 | printk("%s: ofs[%x] len[%x]\n", __func__, ofs, len); |
631 | #endif | 631 | #endif |
632 | 632 | ||
633 | /* Write buffer is worth it only if more than one word to write... */ | 633 | /* Write buffer is worth it only if more than one word to write... */ |
diff --git a/drivers/mtd/devices/lart.c b/drivers/mtd/devices/lart.c index 99fd210feaec..1d324e5c412d 100644 --- a/drivers/mtd/devices/lart.c +++ b/drivers/mtd/devices/lart.c | |||
@@ -275,7 +275,7 @@ static __u8 read8 (__u32 offset) | |||
275 | { | 275 | { |
276 | volatile __u8 *data = (__u8 *) (FLASH_OFFSET + offset); | 276 | volatile __u8 *data = (__u8 *) (FLASH_OFFSET + offset); |
277 | #ifdef LART_DEBUG | 277 | #ifdef LART_DEBUG |
278 | printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.2x\n",__FUNCTION__,offset,*data); | 278 | printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.2x\n", __func__, offset, *data); |
279 | #endif | 279 | #endif |
280 | return (*data); | 280 | return (*data); |
281 | } | 281 | } |
@@ -284,7 +284,7 @@ static __u32 read32 (__u32 offset) | |||
284 | { | 284 | { |
285 | volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset); | 285 | volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset); |
286 | #ifdef LART_DEBUG | 286 | #ifdef LART_DEBUG |
287 | printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.8x\n",__FUNCTION__,offset,*data); | 287 | printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.8x\n", __func__, offset, *data); |
288 | #endif | 288 | #endif |
289 | return (*data); | 289 | return (*data); |
290 | } | 290 | } |
@@ -294,7 +294,7 @@ static void write32 (__u32 x,__u32 offset) | |||
294 | volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset); | 294 | volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset); |
295 | *data = x; | 295 | *data = x; |
296 | #ifdef LART_DEBUG | 296 | #ifdef LART_DEBUG |
297 | printk (KERN_DEBUG "%s(): 0x%.8x <- 0x%.8x\n",__FUNCTION__,offset,*data); | 297 | printk (KERN_DEBUG "%s(): 0x%.8x <- 0x%.8x\n", __func__, offset, *data); |
298 | #endif | 298 | #endif |
299 | } | 299 | } |
300 | 300 | ||
@@ -337,7 +337,7 @@ static inline int erase_block (__u32 offset) | |||
337 | __u32 status; | 337 | __u32 status; |
338 | 338 | ||
339 | #ifdef LART_DEBUG | 339 | #ifdef LART_DEBUG |
340 | printk (KERN_DEBUG "%s(): 0x%.8x\n",__FUNCTION__,offset); | 340 | printk (KERN_DEBUG "%s(): 0x%.8x\n", __func__, offset); |
341 | #endif | 341 | #endif |
342 | 342 | ||
343 | /* erase and confirm */ | 343 | /* erase and confirm */ |
@@ -371,7 +371,7 @@ static int flash_erase (struct mtd_info *mtd,struct erase_info *instr) | |||
371 | int i,first; | 371 | int i,first; |
372 | 372 | ||
373 | #ifdef LART_DEBUG | 373 | #ifdef LART_DEBUG |
374 | printk (KERN_DEBUG "%s(addr = 0x%.8x, len = %d)\n",__FUNCTION__,instr->addr,instr->len); | 374 | printk (KERN_DEBUG "%s(addr = 0x%.8x, len = %d)\n", __func__, instr->addr, instr->len); |
375 | #endif | 375 | #endif |
376 | 376 | ||
377 | /* sanity checks */ | 377 | /* sanity checks */ |
@@ -442,7 +442,7 @@ static int flash_erase (struct mtd_info *mtd,struct erase_info *instr) | |||
442 | static int flash_read (struct mtd_info *mtd,loff_t from,size_t len,size_t *retlen,u_char *buf) | 442 | static int flash_read (struct mtd_info *mtd,loff_t from,size_t len,size_t *retlen,u_char *buf) |
443 | { | 443 | { |
444 | #ifdef LART_DEBUG | 444 | #ifdef LART_DEBUG |
445 | printk (KERN_DEBUG "%s(from = 0x%.8x, len = %d)\n",__FUNCTION__,(__u32) from,len); | 445 | printk (KERN_DEBUG "%s(from = 0x%.8x, len = %d)\n", __func__, (__u32)from, len); |
446 | #endif | 446 | #endif |
447 | 447 | ||
448 | /* sanity checks */ | 448 | /* sanity checks */ |
@@ -488,7 +488,7 @@ static inline int write_dword (__u32 offset,__u32 x) | |||
488 | __u32 status; | 488 | __u32 status; |
489 | 489 | ||
490 | #ifdef LART_DEBUG | 490 | #ifdef LART_DEBUG |
491 | printk (KERN_DEBUG "%s(): 0x%.8x <- 0x%.8x\n",__FUNCTION__,offset,x); | 491 | printk (KERN_DEBUG "%s(): 0x%.8x <- 0x%.8x\n", __func__, offset, x); |
492 | #endif | 492 | #endif |
493 | 493 | ||
494 | /* setup writing */ | 494 | /* setup writing */ |
@@ -524,7 +524,7 @@ static int flash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen | |||
524 | int i,n; | 524 | int i,n; |
525 | 525 | ||
526 | #ifdef LART_DEBUG | 526 | #ifdef LART_DEBUG |
527 | printk (KERN_DEBUG "%s(to = 0x%.8x, len = %d)\n",__FUNCTION__,(__u32) to,len); | 527 | printk (KERN_DEBUG "%s(to = 0x%.8x, len = %d)\n", __func__, (__u32)to, len); |
528 | #endif | 528 | #endif |
529 | 529 | ||
530 | *retlen = 0; | 530 | *retlen = 0; |
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 98df5bcc02f3..60408c955a13 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c | |||
@@ -151,7 +151,7 @@ static int wait_till_ready(struct m25p *flash) | |||
151 | static int erase_sector(struct m25p *flash, u32 offset) | 151 | static int erase_sector(struct m25p *flash, u32 offset) |
152 | { | 152 | { |
153 | DEBUG(MTD_DEBUG_LEVEL3, "%s: %s %dKiB at 0x%08x\n", | 153 | DEBUG(MTD_DEBUG_LEVEL3, "%s: %s %dKiB at 0x%08x\n", |
154 | flash->spi->dev.bus_id, __FUNCTION__, | 154 | flash->spi->dev.bus_id, __func__, |
155 | flash->mtd.erasesize / 1024, offset); | 155 | flash->mtd.erasesize / 1024, offset); |
156 | 156 | ||
157 | /* Wait until finished previous write command. */ | 157 | /* Wait until finished previous write command. */ |
@@ -188,7 +188,7 @@ static int m25p80_erase(struct mtd_info *mtd, struct erase_info *instr) | |||
188 | u32 addr,len; | 188 | u32 addr,len; |
189 | 189 | ||
190 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %d\n", | 190 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %d\n", |
191 | flash->spi->dev.bus_id, __FUNCTION__, "at", | 191 | flash->spi->dev.bus_id, __func__, "at", |
192 | (u32)instr->addr, instr->len); | 192 | (u32)instr->addr, instr->len); |
193 | 193 | ||
194 | /* sanity checks */ | 194 | /* sanity checks */ |
@@ -240,7 +240,7 @@ static int m25p80_read(struct mtd_info *mtd, loff_t from, size_t len, | |||
240 | struct spi_message m; | 240 | struct spi_message m; |
241 | 241 | ||
242 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n", | 242 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n", |
243 | flash->spi->dev.bus_id, __FUNCTION__, "from", | 243 | flash->spi->dev.bus_id, __func__, "from", |
244 | (u32)from, len); | 244 | (u32)from, len); |
245 | 245 | ||
246 | /* sanity checks */ | 246 | /* sanity checks */ |
@@ -308,7 +308,7 @@ static int m25p80_write(struct mtd_info *mtd, loff_t to, size_t len, | |||
308 | struct spi_message m; | 308 | struct spi_message m; |
309 | 309 | ||
310 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n", | 310 | DEBUG(MTD_DEBUG_LEVEL2, "%s: %s %s 0x%08x, len %zd\n", |
311 | flash->spi->dev.bus_id, __FUNCTION__, "to", | 311 | flash->spi->dev.bus_id, __func__, "to", |
312 | (u32)to, len); | 312 | (u32)to, len); |
313 | 313 | ||
314 | if (retlen) | 314 | if (retlen) |
diff --git a/drivers/mtd/maps/bast-flash.c b/drivers/mtd/maps/bast-flash.c index fc3b2672d1e2..59fea2a89804 100644 --- a/drivers/mtd/maps/bast-flash.c +++ b/drivers/mtd/maps/bast-flash.c | |||
@@ -137,7 +137,7 @@ static int bast_flash_probe(struct platform_device *pdev) | |||
137 | if (info->map.size > AREA_MAXSIZE) | 137 | if (info->map.size > AREA_MAXSIZE) |
138 | info->map.size = AREA_MAXSIZE; | 138 | info->map.size = AREA_MAXSIZE; |
139 | 139 | ||
140 | pr_debug("%s: area %08lx, size %ld\n", __FUNCTION__, | 140 | pr_debug("%s: area %08lx, size %ld\n", __func__, |
141 | info->map.phys, info->map.size); | 141 | info->map.phys, info->map.size); |
142 | 142 | ||
143 | info->area = request_mem_region(res->start, info->map.size, | 143 | info->area = request_mem_region(res->start, info->map.size, |
@@ -149,7 +149,7 @@ static int bast_flash_probe(struct platform_device *pdev) | |||
149 | } | 149 | } |
150 | 150 | ||
151 | info->map.virt = ioremap(res->start, info->map.size); | 151 | info->map.virt = ioremap(res->start, info->map.size); |
152 | pr_debug("%s: virt at %08x\n", __FUNCTION__, (int)info->map.virt); | 152 | pr_debug("%s: virt at %08x\n", __func__, (int)info->map.virt); |
153 | 153 | ||
154 | if (info->map.virt == 0) { | 154 | if (info->map.virt == 0) { |
155 | printk(KERN_ERR PFX "failed to ioremap() region\n"); | 155 | printk(KERN_ERR PFX "failed to ioremap() region\n"); |
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index eaeb56a4070a..1912d968718b 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c | |||
@@ -33,7 +33,7 @@ MODULE_PARM_DESC(debug, "Set Debug Level 0=quiet, 5=noisy"); | |||
33 | #undef DEBUG | 33 | #undef DEBUG |
34 | #define DEBUG(n, format, arg...) \ | 34 | #define DEBUG(n, format, arg...) \ |
35 | if (n <= debug) { \ | 35 | if (n <= debug) { \ |
36 | printk(KERN_DEBUG __FILE__ ":%s(): " format "\n", __FUNCTION__ , ## arg); \ | 36 | printk(KERN_DEBUG __FILE__ ":%s(): " format "\n", __func__ , ## arg); \ |
37 | } | 37 | } |
38 | 38 | ||
39 | #else | 39 | #else |
diff --git a/drivers/mtd/maps/pmcmsp-flash.c b/drivers/mtd/maps/pmcmsp-flash.c index 02bde8c982ec..f43ba2815cbb 100644 --- a/drivers/mtd/maps/pmcmsp-flash.c +++ b/drivers/mtd/maps/pmcmsp-flash.c | |||
@@ -46,7 +46,7 @@ static struct mtd_partition **msp_parts; | |||
46 | static struct map_info *msp_maps; | 46 | static struct map_info *msp_maps; |
47 | static int fcnt; | 47 | static int fcnt; |
48 | 48 | ||
49 | #define DEBUG_MARKER printk(KERN_NOTICE "%s[%d]\n",__FUNCTION__,__LINE__) | 49 | #define DEBUG_MARKER printk(KERN_NOTICE "%s[%d]\n", __func__, __LINE__) |
50 | 50 | ||
51 | int __init init_msp_flash(void) | 51 | int __init init_msp_flash(void) |
52 | { | 52 | { |
diff --git a/drivers/mtd/maps/tqm8xxl.c b/drivers/mtd/maps/tqm8xxl.c index 37e4ded9b600..521734057314 100644 --- a/drivers/mtd/maps/tqm8xxl.c +++ b/drivers/mtd/maps/tqm8xxl.c | |||
@@ -124,7 +124,7 @@ int __init init_tqm_mtd(void) | |||
124 | //request maximum flash size address space | 124 | //request maximum flash size address space |
125 | start_scan_addr = ioremap(flash_addr, flash_size); | 125 | start_scan_addr = ioremap(flash_addr, flash_size); |
126 | if (!start_scan_addr) { | 126 | if (!start_scan_addr) { |
127 | printk(KERN_WARNING "%s:Failed to ioremap address:0x%x\n", __FUNCTION__, flash_addr); | 127 | printk(KERN_WARNING "%s:Failed to ioremap address:0x%x\n", __func__, flash_addr); |
128 | return -EIO; | 128 | return -EIO; |
129 | } | 129 | } |
130 | 130 | ||
@@ -132,7 +132,7 @@ int __init init_tqm_mtd(void) | |||
132 | if(mtd_size >= flash_size) | 132 | if(mtd_size >= flash_size) |
133 | break; | 133 | break; |
134 | 134 | ||
135 | printk(KERN_INFO "%s: chip probing count %d\n", __FUNCTION__, idx); | 135 | printk(KERN_INFO "%s: chip probing count %d\n", __func__, idx); |
136 | 136 | ||
137 | map_banks[idx] = kzalloc(sizeof(struct map_info), GFP_KERNEL); | 137 | map_banks[idx] = kzalloc(sizeof(struct map_info), GFP_KERNEL); |
138 | if(map_banks[idx] == NULL) { | 138 | if(map_banks[idx] == NULL) { |
@@ -178,7 +178,7 @@ int __init init_tqm_mtd(void) | |||
178 | mtd_size += mtd_banks[idx]->size; | 178 | mtd_size += mtd_banks[idx]->size; |
179 | num_banks++; | 179 | num_banks++; |
180 | 180 | ||
181 | printk(KERN_INFO "%s: bank%d, name:%s, size:%dbytes \n", __FUNCTION__, num_banks, | 181 | printk(KERN_INFO "%s: bank%d, name:%s, size:%dbytes \n", __func__, num_banks, |
182 | mtd_banks[idx]->name, mtd_banks[idx]->size); | 182 | mtd_banks[idx]->name, mtd_banks[idx]->size); |
183 | } | 183 | } |
184 | } | 184 | } |
diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h index 51c40b17f1ec..8ac7d87dc85b 100644 --- a/drivers/mtd/ubi/debug.h +++ b/drivers/mtd/ubi/debug.h | |||
@@ -41,7 +41,7 @@ | |||
41 | /* Generic debugging message */ | 41 | /* Generic debugging message */ |
42 | #define dbg_msg(fmt, ...) \ | 42 | #define dbg_msg(fmt, ...) \ |
43 | printk(KERN_DEBUG "UBI DBG (pid %d): %s: " fmt "\n", \ | 43 | printk(KERN_DEBUG "UBI DBG (pid %d): %s: " fmt "\n", \ |
44 | current->pid, __FUNCTION__, ##__VA_ARGS__) | 44 | current->pid, __func__, ##__VA_ARGS__) |
45 | 45 | ||
46 | #define ubi_dbg_dump_stack() dump_stack() | 46 | #define ubi_dbg_dump_stack() dump_stack() |
47 | 47 | ||
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index a548c1d28fa8..8f095cb87108 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -54,10 +54,10 @@ | |||
54 | #define ubi_msg(fmt, ...) printk(KERN_NOTICE "UBI: " fmt "\n", ##__VA_ARGS__) | 54 | #define ubi_msg(fmt, ...) printk(KERN_NOTICE "UBI: " fmt "\n", ##__VA_ARGS__) |
55 | /* UBI warning messages */ | 55 | /* UBI warning messages */ |
56 | #define ubi_warn(fmt, ...) printk(KERN_WARNING "UBI warning: %s: " fmt "\n", \ | 56 | #define ubi_warn(fmt, ...) printk(KERN_WARNING "UBI warning: %s: " fmt "\n", \ |
57 | __FUNCTION__, ##__VA_ARGS__) | 57 | __func__, ##__VA_ARGS__) |
58 | /* UBI error messages */ | 58 | /* UBI error messages */ |
59 | #define ubi_err(fmt, ...) printk(KERN_ERR "UBI error: %s: " fmt "\n", \ | 59 | #define ubi_err(fmt, ...) printk(KERN_ERR "UBI error: %s: " fmt "\n", \ |
60 | __FUNCTION__, ##__VA_ARGS__) | 60 | __func__, ##__VA_ARGS__) |
61 | 61 | ||
62 | /* Lowest number PEBs reserved for bad PEB handling */ | 62 | /* Lowest number PEBs reserved for bad PEB handling */ |
63 | #define MIN_RESEVED_PEBS 2 | 63 | #define MIN_RESEVED_PEBS 2 |