[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 2/4] trace-events: fix code style: %# -> 0x%
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v3 2/4] trace-events: fix code style: %# -> 0x% |
Date: |
Mon, 31 Jul 2017 11:15:00 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/31/2017 11:01 AM, Vladimir Sementsov-Ogievskiy wrote:
> In trace format '#' flag of printf is forbidden. Fix it to '0x%'.
>
> This patch is created by the following:
>
> check that we have a problem
>> find . -name trace-events | xargs grep '%#' | wc -l
> 56
>
> check that there are no cases with additional printf flags before '#'
>> find . -name trace-events | xargs grep '%[-+ 0'I]+#' | wc -l
That's not the actual command you used; maintainer can fix the typo by
using "%[-+ 0'I]+#" instead.
> 0
>
> check that there are no wrong usage of '#' and '0x' together
>> find . -name trace-events | xargs grep '0x%#' | wc -l
> 0
>
> fix the problem
>> find . -name trace-events | xargs sed -i 's/%#/0x%/g'
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
> Reviewed-by: Stefan Hajnoczi <address@hidden>
> Reviewed-by: Eric Blake <address@hidden>
> ---
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PATCH v3 0/4] trace-events: print 0x before hex numbers, Vladimir Sementsov-Ogievskiy, 2017/07/31
- [Qemu-devel] [PATCH v3 3/4] checkpatch: check trace-events code style, Vladimir Sementsov-Ogievskiy, 2017/07/31
- [Qemu-devel] [PATCH v3 1/4] coding_style: add point about 0x in trace-events, Vladimir Sementsov-Ogievskiy, 2017/07/31
- [Qemu-devel] [PATCH v3 2/4] trace-events: fix code style: %# -> 0x%, Vladimir Sementsov-Ogievskiy, 2017/07/31
- Re: [Qemu-devel] [PATCH v3 2/4] trace-events: fix code style: %# -> 0x%,
Eric Blake <=
- [Qemu-devel] [PATCH v3 4/4] trace-events: fix code style: print 0x before hex numbers, Vladimir Sementsov-Ogievskiy, 2017/07/31
- Re: [Qemu-devel] [PATCH v3 0/4] trace-events: print 0x before hex numbers, no-reply, 2017/07/31