projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117fc21
)
Expand floppy_ret to show function names when return code is a failure.
author
Kevin O'Connor
<kevin@koconnor.net>
Fri, 25 Apr 2008 00:43:24 +0000
(20:43 -0400)
committer
Kevin O'Connor
<kevin@koconnor.net>
Fri, 25 Apr 2008 00:43:24 +0000
(20:43 -0400)
src/floppy.c
patch
|
blob
|
history
diff --git
a/src/floppy.c
b/src/floppy.c
index bb8cd279ae3622fc6110e1e290afc389712769d9..78627482311a4835615d8d95668610899fff74f0 100644
(file)
--- 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);
}