[Qemu-devel] [PATCH v4] hw/virtio/virtio-mmio: Convert DPRINTF to trace and log

2019-05-03 Thread Boxuan Li
Use traces for debug message and qemu_log_mask for errors. Signed-off-by: Boxuan Li --- v1: https://patchew.org/QEMU/20190428110258.86681-1-libox...@connect.hku.hk/ v2: https://patchew.org/QEMU/20190501081039.58938-1-libox...@connect.hku.hk/ v3: https://patchew.org/QEMU/20190503084654.18413-1

[Qemu-devel] [PATCH v3] hw/virtio/virtio-mmio: Convert DPRINTF to trace and log

2019-05-03 Thread Boxuan Li
Use traces for debug message and qemu_log_mask for errors. Signed-off-by: Boxuan Li --- v1: https://patchew.org/QEMU/20190428110258.86681-1-libox...@connect.hku.hk/ v2: https://patchew.org/QEMU/20190501081039.58938-1-libox...@connect.hku.hk/ v3: Use qemu_log_mask for errors --- hw/virtio/trace

[Qemu-devel] [PATCH v2] hw/virtio/virtio-mmio: Convert DPRINTF to traces

2019-05-01 Thread Boxuan Li
Signed-off-by: Boxuan Li --- v2: Instead of using conditional debugs, convert DPRINTF to traces --- hw/virtio/trace-events | 13 + hw/virtio/virtio-mmio.c | 35 --- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/hw/virtio/trace

[Qemu-devel] [PATCH] target/ppc/kvm: Fix trace typo

2019-04-30 Thread Boxuan Li
Signed-off-by: Boxuan Li --- target/ppc/kvm.c| 2 +- target/ppc/trace-events | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c index 02e22e2017..1a9caf8f40 100644 --- a/target/ppc/kvm.c +++ b/target/ppc/kvm.c @@ -1721,7 +1721,7

[Qemu-devel] [PATCH] virtio-mmio: Always compile debug prints

2019-04-28 Thread Boxuan Li
Wrap printf calls inside debug macros (DPRINTF) in `if` statement, and change output to stderr as well. This will ensure that printf function will always compile and prevent bitrot of the format strings. Signed-off-by: Boxuan Li --- hw/virtio/virtio-mmio.c | 17 - 1 file changed