diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-12-13 13:04:17 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-12-13 13:04:17 -0500 |
commit | dfefeb543866eb74e0668fdec1fe496bb9ffb860 (patch) | |
tree | 0d1ce9d969dcc293c5e4094c85d9b7b21981d793 /src/bregs.h | |
parent | d43e1788502dc99d46bb634424ac70137874f517 (diff) | |
download | seabios-hppa-dfefeb543866eb74e0668fdec1fe496bb9ffb860.zip seabios-hppa-dfefeb543866eb74e0668fdec1fe496bb9ffb860.tar.gz seabios-hppa-dfefeb543866eb74e0668fdec1fe496bb9ffb860.tar.bz2 |
Distinguish between debug reports for unimplemented vs invalid calls.
Don't use "fail" in the debug output - as this confuses users.
When reporting on an invalid parameter - use the word "invalid".
When reporting on an unimplemented call - state it is unimplemented.
Add separate debug levels for unimplemented vs invalid calls.
Also, increase the debug level of several entry points.
Diffstat (limited to 'src/bregs.h')
-rw-r--r-- | src/bregs.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/bregs.h b/src/bregs.h index 3042ab2..0cdd016 100644 --- a/src/bregs.h +++ b/src/bregs.h @@ -79,26 +79,40 @@ set_code_success(struct bregs *regs) } static inline void -set_fail_silent(struct bregs *regs) +set_invalid_silent(struct bregs *regs) { set_cf(regs, 1); } static inline void -set_code_fail_silent(struct bregs *regs, u8 code) +set_code_invalid_silent(struct bregs *regs, u8 code) { regs->ah = code; set_cf(regs, 1); } -#define set_fail(regs) \ - __set_fail((regs), __LINE__, __func__) -#define set_code_fail(regs, code) \ - __set_code_fail((regs), (code) | (__LINE__ << 8), __func__) +#define warn_invalid(regs) \ + __warn_invalid((regs), __LINE__, __func__) +#define set_invalid(regs) \ + __set_invalid((regs), __LINE__, __func__) +#define set_code_invalid(regs, code) \ + __set_code_invalid((regs), (code) | (__LINE__ << 8), __func__) + +#define warn_unimplemented(regs) \ + __warn_unimplemented((regs), __LINE__, __func__) +#define set_unimplemented(regs) \ + __set_unimplemented((regs), __LINE__, __func__) +#define set_code_unimplemented(regs, code) \ + __set_code_unimplemented((regs), (code) | (__LINE__ << 8), __func__) // output.c -void __set_fail(struct bregs *regs, int lineno, const char *fname); -void __set_code_fail(struct bregs *regs, u32 linecode, const char *fname); +void __warn_invalid(struct bregs *regs, int lineno, const char *fname); +void __warn_unimplemented(struct bregs *regs, int lineno, const char *fname); +void __set_invalid(struct bregs *regs, int lineno, const char *fname); +void __set_unimplemented(struct bregs *regs, int lineno, const char *fname); +void __set_code_invalid(struct bregs *regs, u32 linecode, const char *fname); +void __set_code_unimplemented(struct bregs *regs, u32 linecode + , const char *fname); #endif // !__ASSEMBLY__ |