[SPDK] SPDK_DEBUGLOG_FLAG_ENABLED behaviour
Damien Thenot <damien.thenot at vates.fr> Thu, 13 Jan 2022 17:03:23 +0000
| Newsgroups | dev.linux.lists.spdk |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have been tinkering with SPDK code and was trying to use the macro `SPDK_DEBUGLOG_FLAG_ENABLED` (defined in `include/spdk/log.h`). This macro expects a string but other uses of the log interface, e.g. `SPDK_DEBULOG`, expects a FLAG that will be turned in a string by the macro directly. For my usage, I modified the macro to stringify the FLAG. Is this behaviour the expected one or is the current behaviour the correct one? Best regards, Damien Thenot Damien Thenot | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions w: vates.fr | xcp-ng.org | xen-orchestra.com