From: Damien Thenot <damien.thenot at vates.fr>
To: spdk@lists.01.org
Subject: [SPDK] Re: SPDK_DEBUGLOG_FLAG_ENABLED behaviour
Date: Thu, 13 Jan 2022 19:34:54 +0000 [thread overview]
Message-ID: <kyddaewe.30iig4xpwu4u8@vates.fr> (raw)
In-Reply-To: CO1PR11MB4836AF858897BEBF9EBE35A2AD539@CO1PR11MB4836.namprd11.prod.outlook.com
[-- Attachment #1: Type: text/plain, Size: 2003 bytes --]
Hello
Thank you for your answer Paul.
It is indeed not a "real" problem for me, my curiosity of this difference in the usage of log flags in this case was just big enough to make me ask publicly.
Sorry for cluttering the mailing list.
Have a nice day,
Damien
Le jeudi 13/01/2022, 18:57, Luse, Paul E a écrit :
Hi Damien,
Good question. I don’t have the history on this but would guess they were implemented at different times and one just didn’t follow suit wrt the use of a string or not. Is this causing a problem for you? (ie why not use a string in the SPDK_DEBUGLOG_FLAG_ENABLED and a flag for SPDK_DEBUGLOG as current SPDK modules do?)
Thx
Paul
From: Damien Thenot <damien.thenot(a)vates.fr>
Date: Thursday, January 13, 2022 at 10:04 AM
To: spdk(a)lists.01.org <spdk(a)lists.01.org>
Subject: [SPDK] SPDK_DEBUGLOG_FLAG_ENABLED behaviour
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 [http://vates.fr/] | xcp-ng.org [http://xcp-ng.org/] | xen-orchestra.com [http://xen-orchestra.com/]
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org
Damien Thenot | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
w: vates.fr | xcp-ng.org | xen-orchestra.com
next reply other threads:[~2022-01-13 19:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 19:34 Damien Thenot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-01-13 20:30 [SPDK] Re: SPDK_DEBUGLOG_FLAG_ENABLED behaviour Luse, Paul E
2022-01-13 17:56 Luse, Paul E
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=kyddaewe.30iig4xpwu4u8@vates.fr \
--to=spdk@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox