sys: add trace functionality

This commit is contained in:
Bill Zissimopoulos
2021-01-13 16:15:06 -08:00
parent 870c54253a
commit a5726c820b
6 changed files with 189 additions and 0 deletions

View File

@ -22,6 +22,10 @@
#include <sys/driver.h>
#if DBG
#undef STATUS_INSUFFICIENT_RESOURCES
#define STATUS_INSUFFICIENT_RESOURCES ((NTSTATUS)0xC000009AL)
#define SYM(x) case x: return #x;
#define SYMBRC(x) case x: return "[" #x "]";
@ -330,4 +334,5 @@ VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result)
NtStatusSym(Result),
(LONGLONG)Irp->IoStatus.Information);
}
#endif