Skip to content

Commit

Permalink
floppy: format block0 read error message properly
Browse files Browse the repository at this point in the history
In case reading of block 0 fails, line without trailing newline
is printed causing dmesg to look horrible.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Jiri Kosina committed Jun 18, 2014
1 parent 6314a10 commit 1c65df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3774,7 +3774,7 @@ static void floppy_rb0_cb(struct bio *bio, int err)
int drive = cbdata->drive;

if (err) {
pr_info("floppy: error %d while reading block 0", err);
pr_info("floppy: error %d while reading block 0\n", err);
set_bit(FD_OPEN_SHOULD_FAIL_BIT, &UDRS->flags);
}
complete(&cbdata->complete);
Expand Down

0 comments on commit 1c65df3

Please sign in to comment.