Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187149
b: refs/heads/master
c: 275176b
h: refs/heads/master
i:
  187147: df66588
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Mar 12, 2010
1 parent 80d2a75 commit c9a1f07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 891eda80a5227a12956d7997baf9f4b54a9aa4f9
refs/heads/master: 275176bc2a7bbd5c4446ba12b8f4353a69012053
22 changes: 11 additions & 11 deletions trunk/drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,12 +631,12 @@ static DEFINE_TIMER(fd_timeout, floppy_shutdown, 0, 0);

static const char *timeout_message;

static void is_alive(const char *message)
static void is_alive(const char *func, const char *message)
{
/* this routine checks whether the floppy driver is "alive" */
if (test_bit(0, &fdc_busy) && command_status < 2 &&
!timer_pending(&fd_timeout)) {
DPRINT("timeout handler died: %s\n", message);
DPRINT("%s: timeout handler died. %s\n", func, message);
}
}

Expand Down Expand Up @@ -1734,7 +1734,7 @@ irqreturn_t floppy_interrupt(int irq, void *dev_id)
pr_info("DOR0=%x\n", fdc_state[0].dor);
pr_info("floppy interrupt on bizarre fdc %d\n", fdc);
pr_info("handler=%p\n", handler);
is_alive("bizarre fdc");
is_alive(__func__, "bizarre fdc");
return IRQ_NONE;
}

Expand Down Expand Up @@ -1769,7 +1769,7 @@ irqreturn_t floppy_interrupt(int irq, void *dev_id)
return IRQ_NONE;
}
schedule_bh(handler);
is_alive("normal interrupt end");
is_alive(__func__, "normal interrupt end");

/* FIXME! Was it really for us? */
return IRQ_HANDLED;
Expand Down Expand Up @@ -1894,7 +1894,7 @@ static void floppy_shutdown(unsigned long data)
pr_info("no cont in shutdown!\n");
process_fd_request();
}
is_alive("floppy shutdown");
is_alive(__func__, "");
}

/* start motor, check media-changed condition and write protection */
Expand Down Expand Up @@ -2027,7 +2027,7 @@ static int wait_til_done(void (*handler)(void), bool interruptible)
if (command_status >= 2 || !NO_SIGNAL)
break;

is_alive("wait_til_done");
is_alive(__func__, "");
schedule();
}

Expand Down Expand Up @@ -2602,7 +2602,7 @@ static int make_raw_rw_request(void)
raw_cmd->flags |= FD_RAW_WRITE;
COMMAND = FM_MODE(_floppy, FD_WRITE);
} else {
DPRINT("make_raw_rw_request: unknown command\n");
DPRINT("%s: unknown command\n", __func__);
return 0;
}

Expand Down Expand Up @@ -2743,7 +2743,7 @@ static int make_raw_rw_request(void)
raw_cmd->kernel_data = current_req->buffer;
raw_cmd->length = current_count_sectors << 9;
if (raw_cmd->length == 0) {
DPRINT("zero dma transfer attempted from make_raw_request\n");
DPRINT("%s: zero dma transfer attempted\n", __func__);
DPRINT("indirect=%d direct=%d fsector_t=%d\n",
indirect, direct, fsector_t);
return 0;
Expand Down Expand Up @@ -2938,7 +2938,7 @@ static void process_fd_request(void)
static void do_fd_request(struct request_queue *q)
{
if (max_buffer_sectors == 0) {
pr_info("VFS: do_fd_request called on non-open device\n");
pr_info("VFS: %s called on non-open device\n", __func__);
return;
}

Expand All @@ -2953,12 +2953,12 @@ static void do_fd_request(struct request_queue *q)
if (test_bit(0, &fdc_busy)) {
/* fdc busy, this new request will be treated when the
current one is done */
is_alive("do fd request, old request running");
is_alive(__func__, "old request running");
return;
}
lock_fdc(MAXTIMEOUT, false);
process_fd_request();
is_alive("do fd request");
is_alive(__func__, "");
}

static struct cont_t poll_cont = {
Expand Down

0 comments on commit c9a1f07

Please sign in to comment.