[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 01/14] rangeset: add RANGESETF_no_print flag
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- Date: Thu, 25 Nov 2021 11:08:54 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bXigjSS5oxGx1GFEFj94hg/FRykjRSvY3KIh3GabdRg=; b=iC7/Ig3AxA9qUlTirULZo9D5xq0mMf7AOA0Uds7M1Io1hcWnv9mMJKUGWkul4f1wZO7FVJc1Er7nY2mBi2EKAVAxT0GlwduXuH/KZCGLcZIrYe0VjagWskktHvxwVv8w7AiFtbuR4yNvP9p2WKGiib4CVRLQAK8F7hjOpBwU9KS5EHS0WXyHUcr4vK4EliAqZwAdA0VEOVKNbbgEfi4e17FyYfvOSdMQqy6O/E/pYaLqos3LD+ftBb0fCHYZp5LRruUSaIiBrD8IoufeMFARS+PzSwTcckDYrzFetz6/rVB2yXFupIf5IGzZSECs0epf4F5yqAQbqYEiH+aMTJoT2Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hc2LWJ4VFxm8a7a3H0CcPQ1tDAZIQsus1M1YkfwEPopTVM6RG4C58bzBYj/hjgrlTlbvQsCT8L8suhXY071sJlgFMe5NxZGkFvaCGryRl5pYIOJNtzRBRh+tSbukxsuwoSRgiU31NAkC/ZUCmf0L3jWxkJ6BKqE3zpqWG/P30i8tIh8FEBlw0AhuQNZmsOmqCl5Fnmmvc9d0lOMux5v7Pa9qRU5uDFVfJbKL7/ryRUFmEe5yELym1XU1FvKVvePTGRGoQILpQkUlbjqnXVy25sho5mbmRLf65UY02ZIeAavodEnd5OdDrtdMgWAL9F4yhgiUy4vkGTnz3nelU957lA==
- Cc: "julien@xxxxxxx" <julien@xxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Artem Mygaiev <Artem_Mygaiev@xxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "george.dunlap@xxxxxxxxxx" <george.dunlap@xxxxxxxxxx>, "paul@xxxxxxx" <paul@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Rahul Singh <rahul.singh@xxxxxxx>, Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- Delivery-date: Thu, 25 Nov 2021 11:09:16 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHX4ewDgOC3qPO0fU6q4Y3oEVCq8awUFUmAgAAAiIA=
- Thread-topic: [PATCH v5 01/14] rangeset: add RANGESETF_no_print flag
On 25.11.21 13:06, Jan Beulich wrote:
> On 25.11.2021 12:02, Oleksandr Andrushchenko wrote:
>> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>>
>> There are range sets which should not be printed, so introduce a flag
>> which allows marking those as such. Implement relevant logic to skip
>> such entries while printing.
>>
>> While at it also simplify the definition of the flags by directly
>> defining those without helpers.
>>
>> Suggested-by: Jan Beulich <jbeulich@xxxxxxxx>
>> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
> albeit with a remark:
>
>> --- a/xen/include/xen/rangeset.h
>> +++ b/xen/include/xen/rangeset.h
>> @@ -48,9 +48,10 @@ void rangeset_limit(
>> struct rangeset *r, unsigned int limit);
>>
>> /* Flags for passing to rangeset_new(). */
>> - /* Pretty-print range limits in hexadecimal. */
>> -#define _RANGESETF_prettyprint_hex 0
>> -#define RANGESETF_prettyprint_hex (1U << _RANGESETF_prettyprint_hex)
>> +/* Pretty-print range limits in hexadecimal. */
> I would guess this comment was intentionally indented by a blank,
> to visually separate it from the comment covering all flags. I'd
> prefer if that was kept and if the new comment you add followed
> suit.
Ah, ok, so I will add a space for the new flag's comment as well then
> Jan
>
Thank you,
Oleksandr
|