Skip to content

improve report/printf formatting

Radim Krčmář kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6fix conversions in report()sarm/selftest.c powerpc/selftest.c powerpc/spapr_hcall.c +3 more+8 -82 replies
2/6libcflat: add format checking to report()lib/libcflat.h+12 -61 reply
3/6libcflat: fix padding in printflib/printf.c+7 -20 replies
4/6pci-edu: remove 0x before a decimal valuelib/pci-edu.c+1 -11 reply
5/6libcflat: support # flag in printflib/printf.c+13 -20 replies
6/6use %# instead of 0x% in all format stringsarm/pmu.c lib/alloc.c lib/arm64/processor.c +17 more+47 -470 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchThomas HuthDavid Hildenbrand
1/6R-b R-b
2/6R-b
3/6
4/6R-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/6] improve report/printf formatting

This series is a mix of three logical units:

[1-2/6]: add format checking to report() and fix revealed bugs

[3/6]: fix padding in %p conversions

[4-6/6]: fix random 0x%d and support %# to make this mistake harder

Radim Krčmář (6):
fix conversions in report()s
libcflat: add format checking to report()
libcflat: fix padding in printf
pci-edu: remove 0x before a decimal value
libcflat: support # flag in printf
use %# instead of 0x% in all format strings

 arm/pmu.c               |  2 +-
 arm/selftest.c          |  2 +-
 lib/alloc.c             | 10 +++++-----
 lib/arm64/processor.c   |  6 +++---
 lib/libcflat.h          | 18 ++++++++++++------
 lib/pci-edu.c           |  2 +-
 lib/pci.c               |  6 +++---
 lib/powerpc/processor.c |  2 +-
 lib/printf.c            | 20 ++++++++++++++++++--
 lib/x86/desc.c          |  2 +-
 lib/x86/intel-iommu.c   | 16 ++++++++--------
 lib/x86/vm.c            |  4 ++--
 powerpc/emulator.c      |  4 ++--
 powerpc/selftest.c      |  2 +-
 powerpc/spapr_hcall.c   |  2 +-
 powerpc/sprs.c          |  4 ++--
 x86/asyncpf.c           |  6 +++---
 x86/hyperv_synic.c      |  2 +-
 x86/msr.c               |  4 ++--
 x86/tsc.c               |  2 +-
 x86/vmexit.c            |  2 +-
 x86/vmx.c               | 14 +++++++-------
 x86/vmx.h               |  4 ++--
 x86/vmx_tests.c         |  2 +-
 x86/xsave.c             |  2 +-
 25 files changed, 81 insertions(+), 59 deletions(-)
Signature · 1 line
2.13.0