mirror_qemu/target/s390x
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
..
Makefile.objs target/s390x: Add remaining switches to compile with --disable-tcg 2017-07-25 09:17:42 +02:00
arch_dump.c s390x/arch_dump: also dump guarded storage control block 2017-07-14 12:29:49 +02:00
cc_helper.c Move target-* CPU file into a target/ folder 2016-12-20 21:52:12 +01:00
cpu-qom.h Move target-* CPU file into a target/ folder 2016-12-20 21:52:12 +01:00
cpu.c target/s390x: Add remaining switches to compile with --disable-tcg 2017-07-25 09:17:42 +02:00
cpu.h target/s390x: Move exception-related functions to a new excp_helper.c file 2017-07-25 09:17:42 +02:00
cpu_features.c target/s390x: introduce (test|set)_be_bit 2017-07-25 09:17:42 +02:00
cpu_features.h target/s390x: introduce (test|set)_be_bit 2017-07-25 09:17:42 +02:00
cpu_features_def.h s390x/cpumodel: wire up new hardware features 2017-07-14 12:29:49 +02:00
cpu_models.c target/s390x: improve baselining if certain base features are missing 2017-07-25 09:17:42 +02:00
cpu_models.h s390x/cpumodel: provide compat handling for new cpu features 2017-07-14 12:29:47 +02:00
diag.c target/s390x: Move diag helpers to a separate file 2017-07-25 09:17:42 +02:00
excp_helper.c target/s390x: Move exception-related functions to a new excp_helper.c file 2017-07-25 09:17:42 +02:00
fpu_helper.c target/s390x: implement COMPARE AND SIGNAL 2017-06-06 15:20:38 -07:00
gdbstub.c s390x/gdb: add gs registers 2017-07-14 12:29:49 +02:00
gen-features.c s390/cpumodel: remove KSS from the default model of z14 2017-07-25 09:17:42 +02:00
helper.c target/s390x: Move exception-related functions to a new excp_helper.c file 2017-07-25 09:17:42 +02:00
helper.h target/s390x: Implement TRTR 2017-07-17 14:13:17 -07:00
insn-data.def target/s390x: Implement TRTR 2017-07-17 14:13:17 -07:00
insn-format.def target/s390x: Implement load-on-condition-2 insns 2017-06-23 09:17:44 -07:00
int_helper.c target-s390x: Avoid a loop for popcnt 2017-01-10 08:48:57 -08:00
interrupt.c target/s390x: Rework program_interrupt() and related functions 2017-07-25 09:17:42 +02:00
ioinst.c s390x/css: fix ilen in IO instruction handlers 2017-07-25 09:17:42 +02:00
kvm.c target/s390x: Rework program_interrupt() and related functions 2017-07-25 09:17:42 +02:00
machine.c s390x/kvm: enable guarded storage 2017-07-14 12:29:49 +02:00
mem_helper.c target/s390x: Implement TRTR 2017-07-17 14:13:17 -07:00
misc_helper.c target/s390x: fix pgm irq ilen for stsi 2017-07-28 10:06:25 +02:00
mmu_helper.c target/s390x: fix pgm irq ilen in translate_pages() 2017-07-28 10:06:25 +02:00
trace-events trace-events: fix code style: print 0x before hex numbers 2017-08-01 12:13:07 +01:00
translate.c target/s390x: Move s390_cpu_dump_state() to helper.c 2017-07-25 09:17:42 +02:00