qemu/hw/dma
Vladimir Sementsov-Ogievskiy 8908eb1a4a trace-events: fix code style: print 0x before hex numbers
The only exception are groups of numers separated by symbols
'.', ' ', ':', '/', like 'ab.09.7d'.

This patch is made by the following:

> find . -name trace-events | xargs python script.py

where script.py is the following python script:
=========================
 #!/usr/bin/env python

import sys
import re
import fileinput

rhex = '%[-+ *.0-9]*(?:[hljztL]|ll|hh)?(?:x|X|"\s*PRI[xX][^"]*"?)'
rgroup = re.compile('((?:' + rhex + '[.:/ ])+' + rhex + ')')
rbad = re.compile('(?<!0x)' + rhex)

files = sys.argv[1:]

for fname in files:
    for line in fileinput.input(fname, inplace=True):
        arr = re.split(rgroup, line)
        for i in range(0, len(arr), 2):
            arr[i] = re.sub(rbad, '0x\g<0>', arr[i])

        sys.stdout.write(''.join(arr))
=========================

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Message-id: 20170731160135.12101-5-vsementsov@virtuozzo.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2017-08-01 12:13:07 +01:00
..
bcm2835_dma.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
etraxfs_dma.c etraxfs_dma: Dont forward zero-length payload to clients 2016-02-20 00:17:48 +01:00
i8257.c qdev: Replace cannot_instantiate_with_device_add_yet with !user_creatable 2017-05-17 10:37:00 -03:00
i82374.c i8257: pass ISA bus to DMA_init() function 2016-02-03 11:28:55 -05:00
Makefile.objs dma: Add Xilinx Zynq devcfg device model 2016-07-04 13:15:22 +01:00
omap_dma.c dma: omap: check dma channel data_type 2017-01-27 15:29:08 +00:00
pl080.c hw/dma/pl080: Fix bad bit mask (PL080_CONF_M1 | PL080_CONF_M1) 2016-10-17 19:22:17 +01:00
pl330.c migration: consolidate VMStateField.start 2017-02-13 17:27:13 +00:00
puv3_dma.c unicore: Clean up includes 2016-01-29 15:07:22 +00:00
pxa2xx_dma.c hw/dma: QOM'ify pxa2xx_dma.c 2016-06-14 15:59:14 +01:00
rc4030.c memory/iommu: introduce IOMMUMemoryRegionClass 2017-07-14 12:04:41 +02:00
soc_dma.c hw: Clean up includes 2016-01-29 15:07:25 +00:00
sparc32_dma.c hw/dma: QOM'ify sparc32_dma.c 2017-06-02 05:54:43 +01:00
sun4m_iommu.c hw/dma: QOM'ify sun4m_iommu.c 2017-06-02 05:54:43 +01:00
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00
xilinx_axidma.c xilinx: Fix latent error handling bug 2017-07-13 13:45:53 +02:00
xlnx_dpdma.c introduce xlnx-dpdma 2016-06-14 16:01:03 +01:00
xlnx-zynq-devcfg.c dma: Add Xilinx Zynq devcfg device model 2016-07-04 13:15:22 +01:00