aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-03-10 18:21:06 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-12 18:52:31 -0500
commit275176bc2a7bbd5c4446ba12b8f4353a69012053 (patch)
treeaa90ce0236e40afae5905430ded6b67c0ea7267f /drivers/block
parent891eda80a5227a12956d7997baf9f4b54a9aa4f9 (diff)
drivers/block/floppy.c: use __func__ where appropriate
Add and use __func__ to is_alive. Use __func__ in some DPRINTs. Signed-off-by: Joe Perches <joe@perches.com> Cc: Stephen Hemminger <shemminger@vyatta.com> Cc: Jens Axboe <jens.axboe@oracle.com> Cc: Marcin Slusarz <marcin.slusarz@gmail.com> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/floppy.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 613c279afcf1..c500c5cc34ee 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -631,12 +631,12 @@ static DEFINE_TIMER(fd_timeout, floppy_shutdown, 0, 0);
631 631
632static const char *timeout_message; 632static const char *timeout_message;
633 633
634static void is_alive(const char *message) 634static void is_alive(const char *func, const char *message)
635{ 635{
636 /* this routine checks whether the floppy driver is "alive" */ 636 /* this routine checks whether the floppy driver is "alive" */
637 if (test_bit(0, &fdc_busy) && command_status < 2 && 637 if (test_bit(0, &fdc_busy) && command_status < 2 &&
638 !timer_pending(&fd_timeout)) { 638 !timer_pending(&fd_timeout)) {
639 DPRINT("timeout handler died: %s\n", message); 639 DPRINT("%s: timeout handler died. %s\n", func, message);
640 } 640 }
641} 641}
642 642
@@ -1734,7 +1734,7 @@ irqreturn_t floppy_interrupt(int irq, void *dev_id)
1734 pr_info("DOR0=%x\n", fdc_state[0].dor); 1734 pr_info("DOR0=%x\n", fdc_state[0].dor);
1735 pr_info("floppy interrupt on bizarre fdc %d\n", fdc); 1735 pr_info("floppy interrupt on bizarre fdc %d\n", fdc);
1736 pr_info("handler=%p\n", handler); 1736 pr_info("handler=%p\n", handler);
1737 is_alive("bizarre fdc"); 1737 is_alive(__func__, "bizarre fdc");
1738 return IRQ_NONE; 1738 return IRQ_NONE;
1739 } 1739 }
1740 1740
@@ -1769,7 +1769,7 @@ irqreturn_t floppy_interrupt(int irq, void *dev_id)
1769 return IRQ_NONE; 1769 return IRQ_NONE;
1770 } 1770 }
1771 schedule_bh(handler); 1771 schedule_bh(handler);
1772 is_alive("normal interrupt end"); 1772 is_alive(__func__, "normal interrupt end");
1773 1773
1774 /* FIXME! Was it really for us? */ 1774 /* FIXME! Was it really for us? */
1775 return IRQ_HANDLED; 1775 return IRQ_HANDLED;
@@ -1894,7 +1894,7 @@ static void floppy_shutdown(unsigned long data)
1894 pr_info("no cont in shutdown!\n"); 1894 pr_info("no cont in shutdown!\n");
1895 process_fd_request(); 1895 process_fd_request();
1896 } 1896 }
1897 is_alive("floppy shutdown"); 1897 is_alive(__func__, "");
1898} 1898}
1899 1899
1900/* start motor, check media-changed condition and write protection */ 1900/* start motor, check media-changed condition and write protection */
@@ -2027,7 +2027,7 @@ static int wait_til_done(void (*handler)(void), bool interruptible)
2027 if (command_status >= 2 || !NO_SIGNAL) 2027 if (command_status >= 2 || !NO_SIGNAL)
2028 break; 2028 break;
2029 2029
2030 is_alive("wait_til_done"); 2030 is_alive(__func__, "");
2031 schedule(); 2031 schedule();
2032 } 2032 }
2033 2033
@@ -2602,7 +2602,7 @@ static int make_raw_rw_request(void)
2602 raw_cmd->flags |= FD_RAW_WRITE; 2602 raw_cmd->flags |= FD_RAW_WRITE;
2603 COMMAND = FM_MODE(_floppy, FD_WRITE); 2603 COMMAND = FM_MODE(_floppy, FD_WRITE);
2604 } else { 2604 } else {
2605 DPRINT("make_raw_rw_request: unknown command\n"); 2605 DPRINT("%s: unknown command\n", __func__);
2606 return 0; 2606 return 0;
2607 } 2607 }
2608 2608
@@ -2743,7 +2743,7 @@ static int make_raw_rw_request(void)
2743 raw_cmd->kernel_data = current_req->buffer; 2743 raw_cmd->kernel_data = current_req->buffer;
2744 raw_cmd->length = current_count_sectors << 9; 2744 raw_cmd->length = current_count_sectors << 9;
2745 if (raw_cmd->length == 0) { 2745 if (raw_cmd->length == 0) {
2746 DPRINT("zero dma transfer attempted from make_raw_request\n"); 2746 DPRINT("%s: zero dma transfer attempted\n", __func__);
2747 DPRINT("indirect=%d direct=%d fsector_t=%d\n", 2747 DPRINT("indirect=%d direct=%d fsector_t=%d\n",
2748 indirect, direct, fsector_t); 2748 indirect, direct, fsector_t);
2749 return 0; 2749 return 0;
@@ -2938,7 +2938,7 @@ static void process_fd_request(void)
2938static void do_fd_request(struct request_queue *q) 2938static void do_fd_request(struct request_queue *q)
2939{ 2939{
2940 if (max_buffer_sectors == 0) { 2940 if (max_buffer_sectors == 0) {
2941 pr_info("VFS: do_fd_request called on non-open device\n"); 2941 pr_info("VFS: %s called on non-open device\n", __func__);
2942 return; 2942 return;
2943 } 2943 }
2944 2944
@@ -2953,12 +2953,12 @@ static void do_fd_request(struct request_queue *q)
2953 if (test_bit(0, &fdc_busy)) { 2953 if (test_bit(0, &fdc_busy)) {
2954 /* fdc busy, this new request will be treated when the 2954 /* fdc busy, this new request will be treated when the
2955 current one is done */ 2955 current one is done */
2956 is_alive("do fd request, old request running"); 2956 is_alive(__func__, "old request running");
2957 return; 2957 return;
2958 } 2958 }
2959 lock_fdc(MAXTIMEOUT, false); 2959 lock_fdc(MAXTIMEOUT, false);
2960 process_fd_request(); 2960 process_fd_request();
2961 is_alive("do fd request"); 2961 is_alive(__func__, "");
2962} 2962}
2963 2963
2964static struct cont_t poll_cont = { 2964static struct cont_t poll_cont = {