From 04639c3ea4179a98d555c13ce6b73d49e96bf4e5 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 1 Jul 2010 07:19:23 -0700 Subject: [PATCH] core, diskio: move dprintfs to the intended location Move the dprintfs to the location that they were intended to use. Signed-off-by: H. Peter Anvin --- core/fs/diskio.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/fs/diskio.c b/core/fs/diskio.c index b186af6..1180c44 100644 --- a/core/fs/diskio.c +++ b/core/fs/diskio.c @@ -76,11 +76,12 @@ static int chs_rdwr_sectors(struct disk *disk, void *buf, __intcall(0x13, &ireg, &oreg); if (!(oreg.eflags.l & EFLAGS_CF)) break; - if (retry--) - continue; dprintf("CHS: error AX = %04x\n", oreg.eax.w[0]); + if (retry--) + continue; + /* For any starting value, this will always end with ..., 1, 0 */ chunk >>= 1; if (chunk) { @@ -179,11 +180,12 @@ static int edd_rdwr_sectors(struct disk *disk, void *buf, __intcall(0x13, &ireg, &oreg); if (!(oreg.eflags.l & EFLAGS_CF)) break; - if (retry--) - continue; dprintf("EDD: error AX = %04x\n", oreg.eax.w[0]); + if (retry--) + continue; + /* For any starting value, this will always end with ..., 1, 0 */ chunk >>= 1; if (chunk) { -- 2.7.4