qemu-e2k/hw/xen
Vladimir Sementsov-Ogievskiy db73ee4bc8 trace-events: fix code style: %# -> 0x%
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
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'

[Eric Blake noted that xargs grep '%[-+ 0'I]+#' should be xargs grep
"%[-+ 0'I]+#" instead so the shell quoting is correct.
--Stefan]

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20170731160135.12101-3-vsementsov@virtuozzo.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2017-08-01 12:13:07 +01:00
..
Makefile.objs move xen-common.c to hw/xen/ 2017-04-25 11:04:34 -07:00
trace-events trace-events: fix code style: %# -> 0x% 2017-08-01 12:13:07 +01:00
xen_backend.c Remove/replace sysemu/char.h inclusion 2017-06-02 11:33:52 +04:00
xen_devconfig.c xen: Rename xen_be_printf to xen_pv_printf 2016-10-28 17:53:50 -07:00
xen_pt_config_init.c hw/xen: Set emu_mask for igd_opregion register 2017-07-18 13:26:35 -07:00
xen_pt_graphics.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
xen_pt_msi.c xen_pt_msi.c: Check for xen_host_pci_get_* failures in xen_pt_msix_init() 2017-07-18 13:27:04 -07:00
xen_pt.c xen/pt: Fixup addr validation in xen_pt_pci_config_access_check 2017-07-07 11:13:10 -07:00
xen_pt.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
xen_pvdev.c xen: create qdev for each backend device 2016-11-22 10:29:39 -08:00
xen-common.c migration: move skip_section_footers 2017-06-28 11:18:39 +02:00
xen-host-pci-device.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
xen-host-pci-device.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00