diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 08a0959e4..d201c031a 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -9,7 +9,7 @@ jobs: matrix: path: - check: '.' - exclude: './NetKVM|./pciserial|./viocrypt|./viofs|./viogpu|./vioinput|./viomem|./viorng|./vioscsi|./vioserial|./viosock|./viostor|./VirtIO' + exclude: './pvpanic/pvpanic/trace.h|./NetKVM|./pciserial|./viocrypt|./viofs|./viogpu|./vioinput|./viomem|./viorng|./vioscsi|./vioserial|./viosock|./viostor|./VirtIO' - check: 'VirtIO' exclude: '' diff --git a/pvpanic/pvpanic/trace.h b/pvpanic/pvpanic/trace.h index 7ce00fcb4..df9b3cb7f 100644 --- a/pvpanic/pvpanic/trace.h +++ b/pvpanic/pvpanic/trace.h @@ -33,18 +33,25 @@ // Tracing GUID - 5eeabb8c-be9a-40d0-99fd-86f2a0b21378 // -#define WPP_CONTROL_GUIDS \ - WPP_DEFINE_CONTROL_GUID(PVPanicTraceGuid, \ - (5eeabb8c, be9a, 40d0, 99fd, 86f2a0b21378), \ - WPP_DEFINE_BIT(DBG_ALL) WPP_DEFINE_BIT(DBG_INIT) WPP_DEFINE_BIT(DBG_POWER)) +#define WPP_CONTROL_GUIDS \ + WPP_DEFINE_CONTROL_GUID( \ + PVPanicTraceGuid, (5eeabb8c,be9a,40d0,99fd,86f2a0b21378), \ + WPP_DEFINE_BIT(DBG_ALL) \ + WPP_DEFINE_BIT(DBG_INIT) \ + WPP_DEFINE_BIT(DBG_POWER) \ + ) -#define WPP_FLAG_LEVEL_LOGGER(flag, level) WPP_LEVEL_LOGGER(flag) +#define WPP_FLAG_LEVEL_LOGGER(flag, level) \ + WPP_LEVEL_LOGGER(flag) -#define WPP_FLAG_LEVEL_ENABLED(flag, level) (WPP_LEVEL_ENABLED(flag) && WPP_CONTROL(WPP_BIT_##flag).Level >= level) +#define WPP_FLAG_LEVEL_ENABLED(flag, level) \ + (WPP_LEVEL_ENABLED(flag) && WPP_CONTROL(WPP_BIT_ ## flag).Level >= level) -#define WPP_LEVEL_FLAGS_LOGGER(lvl, flags) WPP_LEVEL_LOGGER(flags) +#define WPP_LEVEL_FLAGS_LOGGER(lvl,flags) \ + WPP_LEVEL_LOGGER(flags) -#define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_##flags).Level >= lvl) +#define WPP_LEVEL_FLAGS_ENABLED(lvl, flags) \ + (WPP_LEVEL_ENABLED(flags) && WPP_CONTROL(WPP_BIT_ ## flags).Level >= lvl) // // This comment block is scanned by the trace preprocessor to define our