All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jürgen Groß" <jgross@suse.com>
To: Julien Grall <julien@xen.org>, xen-devel@lists.xenproject.org
Cc: bertrand.marquis@arm.com, Rahul.Singh@arm.com,
	Julien Grall <jgrall@amazon.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>,
	Ian Jackson <iwj@xenproject.org>, Jan Beulich <jbeulich@suse.com>,
	Stefano Stabellini <sstabellini@kernel.org>, Wei Liu <wl@xen.org>
Subject: Re: [PATCH] xen: Rework WARN_ON() to return whether a warning was triggered
Date: Tue, 15 Dec 2020 17:20:50 +0100	[thread overview]
Message-ID: <805b2663-ca64-1e8a-6bbf-b93ecabec979@suse.com> (raw)
In-Reply-To: <cbae7c17-829e-f48f-3a6a-7fee489711c2@xen.org>


[-- Attachment #1.1.1: Type: text/plain, Size: 1262 bytes --]

On 15.12.20 14:11, Julien Grall wrote:
> Hi Juergen,
> 
> On 15/12/2020 11:31, Jürgen Groß wrote:
>> On 15.12.20 12:26, Julien Grall wrote:
>>> From: Julien Grall <jgrall@amazon.com>
>>>
>>> So far, our implementation of WARN_ON() cannot be used in the following
>>> situation:
>>>
>>> if ( WARN_ON() )
>>>      ...
>>>
>>> This is because the WARN_ON() doesn't return whether a warning. Such
>>
>> ... warning has been triggered.
> 
> I will add it.
> 
>>
>>> construction can be handy to have if you have to print more information
>>> and now the stack track.
>>
>> Sorry, I'm not able to parse that sentence.
> 
> Urgh :/. How about the following commit message:
> 
> "So far, our implementation of WARN_ON() cannot be used in the following 
> situation:
> 
> if ( WARN_ON() )
>    ...
> 
> This is because WARN_ON() doesn't return whether a warning has been 
> triggered. Such construciton can be handy if you want to print more 
> information and also dump the stack trace.
> 
> Therefore, rework the WARN_ON() implementation to return whether a 
> warning was triggered. The idea was borrowed from Linux".

Better :-)

With that you can add my:

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen

[-- Attachment #1.1.2: OpenPGP_0xB0DE9DD628BF132F.asc --]
[-- Type: application/pgp-keys, Size: 3135 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

  reply	other threads:[~2020-12-15 16:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-15 11:26 [PATCH] xen: Rework WARN_ON() to return whether a warning was triggered Julien Grall
2020-12-15 11:31 ` Jürgen Groß
2020-12-15 13:11   ` Julien Grall
2020-12-15 16:20     ` Jürgen Groß [this message]
2020-12-17 17:58     ` Bertrand Marquis
2020-12-15 11:46 ` Jan Beulich
2020-12-15 13:19   ` Julien Grall
2020-12-15 14:01     ` Jan Beulich
2020-12-17 23:54       ` Stefano Stabellini
2020-12-18  0:29         ` Julien Grall
2020-12-18  7:54         ` Jan Beulich
2020-12-18  8:19           ` Jürgen Groß
2020-12-18  8:31             ` Jan Beulich

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=805b2663-ca64-1e8a-6bbf-b93ecabec979@suse.com \
    --to=jgross@suse.com \
    --cc=Rahul.Singh@arm.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=bertrand.marquis@arm.com \
    --cc=george.dunlap@citrix.com \
    --cc=iwj@xenproject.org \
    --cc=jbeulich@suse.com \
    --cc=jgrall@amazon.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.