qemu/hw/scsi
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
..
esp-pci.c hw/scsi: Concentrate -drive if=scsi auto-create in one place 2017-02-21 13:17:45 +01:00
esp.c hw/scsi: Concentrate -drive if=scsi auto-create in one place 2017-02-21 13:17:45 +01:00
lsi53c895a.c scsi/lsi53c895a: Remove unused lsi_mem_*() return value 2017-06-04 18:42:55 +03:00
Makefile.objs vhost-user-scsi: Introduce vhost-user-scsi host device 2017-06-15 11:18:40 +02:00
megasas.c megasas: always store SCSIRequest* into MegasasCmd 2017-06-15 11:04:05 +02:00
mfi.h
mpi.h
mptconfig.c
mptendian.c
mptsas.c scsi: mptsas: fix the wrong reading size in fetch request 2017-03-14 13:26:37 +01:00
mptsas.h
scsi-bus.c Convert error_report() to warn_report() 2017-07-13 13:49:58 +02:00
scsi-disk.c scsi-disk: bdrv_attach_dev() for empty CD-ROM 2017-07-18 15:14:36 +02:00
scsi-generic.c Use qemu_tolower() and qemu_toupper(), not tolower() and toupper() 2017-07-21 10:32:41 +01:00
spapr_vscsi.c hw: Deprecate -drive if=scsi with non-onboard HBAs 2017-02-21 13:17:45 +01:00
srp.h
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00
vhost-scsi-common.c vhost-user-scsi: Introduce vhost-user-scsi host device 2017-06-15 11:18:40 +02:00
vhost-scsi.c migration: Create migration/blocker.h 2017-05-17 12:04:59 +02:00
vhost-user-scsi.c vhost-user-scsi: Introduce vhost-user-scsi host device 2017-06-15 11:18:40 +02:00
viosrp.h
virtio-scsi-dataplane.c virtio-scsi: Fix acquire/release in dataplane handlers 2017-03-24 11:49:03 +01:00
virtio-scsi.c virtio-scsi: Convert to DEFINE_PROP_LINK 2017-07-14 12:04:42 +02:00
vmw_pvscsi.c vmw_pvscsi: check message ring page count at initialisation 2017-05-05 12:09:59 +02:00
vmw_pvscsi.h