aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-04-24 20:43:24 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-04-24 20:43:24 -0400
commit0b6972591bbf928d7b019afe29372fa41ecf0d50 (patch)
treedc4fa5bede9126243acf8739f500747eb3573fcb
parent117fc21837f45bbc1f7cb6274bb5458ce93f090f (diff)
downloadseabios-0b6972591bbf928d7b019afe29372fa41ecf0d50.tar.gz
Expand floppy_ret to show function names when return code is a failure.rel-0.2.2
-rw-r--r--src/floppy.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/floppy.c b/src/floppy.c
index bb8cd279..78627482 100644
--- a/src/floppy.c
+++ b/src/floppy.c
@@ -350,12 +350,15 @@ floppy_media_sense(u8 drive)
return rv;
}
-static inline void
-floppy_ret(struct bregs *regs, u8 code)
+#define floppy_ret(regs, code) \
+ __floppy_ret(__func__, (regs), (code))
+
+void
+__floppy_ret(const char *fname, struct bregs *regs, u8 code)
{
SET_BDA(floppy_last_status, code);
if (code)
- set_code_fail(regs, code);
+ __set_code_fail(fname, regs, code);
else
set_code_success(regs);
}