Re: [Qemu-devel] [PATCH v2 3/4] checkpatch: check trace-events code style

2017-07-31 Thread Eric Blake
On 07/31/2017 04:26 AM, Stefan Hajnoczi wrote: > On Sat, Jul 29, 2017 at 04:11:58PM +0300, Vladimir Sementsov-Ogievskiy wrote: >> Accordingly to CODING_STYLE, check that in trace-events: s/Accordingly/According/ >> 1. hex numbers are prefixed with '0x' >> 2. '#' flag of printf is not used >> 3.

Re: [Qemu-devel] [PATCH v2 3/4] checkpatch: check trace-events code style

2017-07-31 Thread Stefan Hajnoczi
On Sat, Jul 29, 2017 at 04:11:58PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Accordingly to CODING_STYLE, check that in trace-events: > 1. hex numbers are prefixed with '0x' > 2. '#' flag of printf is not used > 3. The exclusion from 1. are period-separated groups of numbers > > Signed-off-by:

[Qemu-devel] [PATCH v2 3/4] checkpatch: check trace-events code style

2017-07-29 Thread Vladimir Sementsov-Ogievskiy
Accordingly to CODING_STYLE, check that in trace-events: 1. hex numbers are prefixed with '0x' 2. '#' flag of printf is not used 3. The exclusion from 1. are period-separated groups of numbers Signed-off-by: Vladimir Sementsov-Ogievskiy --- scripts/checkpatch.pl | 19