Skip to content

Commit

Permalink
Let ASSERT/VERIFY send message to cbuf
Browse files Browse the repository at this point in the history
A bit inconsistent to let SPL call back up
to ZFS to add print to the cbuf, but until
we get around to moving cbuf into SPL.

Signed-off-by: Jorgen Lundman <[email protected]>
  • Loading branch information
lundman committed Oct 19, 2024
1 parent da1fdfb commit b35aa96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/os/windows/spl/sys/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,13 @@ extern void printBuffer(const char *fmt, ...);

#endif // LUDICROUS_SPEED

/* Naughty to call from spl to zfs. */
void printBuffer(const char *fmt, ...);

#define PANIC(fmt, ...) \
do { \
xprintf(fmt, __VA_ARGS__); \
printBuffer(fmt, __VA_ARGS__); \
DbgBreakPoint(); \
} while (0)

Expand Down

0 comments on commit b35aa96

Please sign in to comment.