Skip to content

buildsys: Replace some deprecated sprintf()

Philippe Mathieu-Daudé qemu-arm qemu-devel qemu-riscv 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest17 patches 13 repliesIn review
  2. v15 patches 1 replySuperseded

Changes in v2 from the cover letter

- Use g_strdup_printf (pm215)
- More replacements

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17tests/qtest: Use qemu_hexdump_to_buffer() in qtest_memwrite()tests/qtest/libqtest.c+1 -51 reply
2/17tests/qtest/npcm7xx: Replace deprecated sprintf() with g_strdup_printf()tests/qtest/npcm7xx_adc-test.c tests/qtest/npcm7xx_pwm-test.c+8 -142 replies
3/17tests/unit/qobject: Replace deprecated sprintf() with g_strdup_printf()tests/unit/test-qobject-input-visitor.c tests/unit/test-qobject-output-visitor.c+2 -51 reply
4/17tests/unit/visitor: Replace deprecated sprintf() with snprintf()tests/unit/test-visitor-serialization.c+13 -80 replies
5/17hw/ppc/vof: Replace deprecated sprintf() with snprintf()hw/ppc/vof.c+1 -10 replies
6/17hw/usb/hcd-ohci: Replace deprecated sprintf() with snprintf()hw/usb/hcd-ohci.c+1 -10 replies
7/17hw/riscv/platform-ref: Replace deprecated sprintf with g_strdup_printfhw/riscv/server_platform_ref.c+5 -62 replies
8/17hw/vfio/pci: Replace deprecated sprintf() with g_strdup_printf()hw/vfio/pci.c+3 -41 reply
9/17hw/ppc/spapr: Replace deprecated sprintf() with g_strdup_printf()hw/ppc/spapr.c+1 -21 reply
10/17hw/net/eepro100: Replace deprecated sprintf() with snprintf()hw/net/eepro100.c+1 -11 reply
11/17hw/net/rocker: Replace deprecated sprintf() with snprintf()hw/net/rocker/rocker.c+12 -120 replies
12/17hw/scsi: Replace deprecated sprintf() with snprintf()hw/scsi/scsi-generic.c+1 -10 replies
13/17target/xtensa: Replace deprecated sprintf() with snprintf()target/xtensa/xtensa-isa.c+31 -191 reply
14/17target/m68k: Replace deprecated sprintf() with snprintf()target/m68k/translate.c+3 -30 replies
15/17target/rx: Replace deprecated sprintf() with snprintf()target/rx/disas.c+1 -11 reply
16/17libdecnumber: Replace deprecated sprintf() with snprintf()libdecnumber/dpd/decimal128.c libdecnumber/dpd/decimal32.c libdecnumber/dpd/decimal64.c+6 -60 replies
17/17qga/vss-win32: Replace deprecated sprintf() by StrCatBuffA()qga/vss-win32/install.cpp+12 -52 replies

Reviews trailers per patch

9 of 17 patches have a Reviewed-by or Acked-by.

PatchCédric Le GoaterAlex BennéeAlistair FrancisMax FilippovYoshinori SatoPeter MaydellHao Wu
1/17R-b
2/17R-b R-b
3/17R-b
4/17
5/17
6/17
7/17R-b R-b
8/17R-b
9/17R-b
10/17R-b
11/17
12/17
13/17R-b
14/17
15/17R-b
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/17] buildsys: Replace some deprecated sprintf()

v2:
- Use g_strdup_printf (pm215)
- More replacements

Since some time now we get the build output cluttered with many deprecation warnings, it is becoming hard to notice the real ones. This series fixes few recurrent use by the --disable-tcg --enable-hvf build.

(Yes, VOF is not used on HVF x86/ARM64, I haven't
investigated why it is selected and built).

Philippe Mathieu-Daudé (17):
tests/qtest: Use qemu_hexdump_to_buffer() in qtest_memwrite() tests/qtest/npcm7xx: Replace deprecated sprintf() with
g_strdup_printf()
tests/unit/qobject: Replace deprecated sprintf() with
g_strdup_printf()
tests/unit/visitor: Replace deprecated sprintf() with snprintf() hw/ppc/vof: Replace deprecated sprintf() with snprintf() hw/usb/hcd-ohci: Replace deprecated sprintf() with snprintf() hw/riscv/platform-ref: Replace deprecated sprintf with g_strdup_printf hw/vfio/pci: Replace deprecated sprintf() with g_strdup_printf() hw/ppc/spapr: Replace deprecated sprintf() with g_strdup_printf() hw/net/eepro100: Replace deprecated sprintf() with snprintf() hw/net/rocker: Replace deprecated sprintf() with snprintf() hw/scsi: Replace deprecated sprintf() with snprintf() target/xtensa: Replace deprecated sprintf() with snprintf() target/m68k: Replace deprecated sprintf() with snprintf() target/rx: Replace deprecated sprintf() with snprintf()
libdecnumber: Replace deprecated sprintf() with snprintf() qga/vss-win32: Replace deprecated sprintf() by StrCatBuffA()

 hw/net/eepro100.c                        |  2 +-
 hw/net/rocker/rocker.c                   | 24 ++++++------
 hw/ppc/spapr.c                           |  3 +-
 hw/ppc/vof.c                             |  2 +-
 hw/riscv/server_platform_ref.c           | 11 +++---
 hw/scsi/scsi-generic.c                   |  2 +-
 hw/usb/hcd-ohci.c                        |  2 +-
 hw/vfio/pci.c                            |  7 ++--
 libdecnumber/dpd/decimal128.c            |  4 +-
 libdecnumber/dpd/decimal32.c             |  4 +-
 libdecnumber/dpd/decimal64.c             |  4 +-
 target/m68k/translate.c                  |  6 +--
 target/rx/disas.c                        |  2 +-
 target/xtensa/xtensa-isa.c               | 50 +++++++++++++++---------
 tests/qtest/libqtest.c                   |  6 +--
 tests/qtest/npcm7xx_adc-test.c           |  8 ++--
 tests/qtest/npcm7xx_pwm-test.c           | 14 ++-----
 tests/unit/test-qobject-input-visitor.c  |  4 +-
 tests/unit/test-qobject-output-visitor.c |  3 +-
 tests/unit/test-visitor-serialization.c  | 21 ++++++----
 qga/vss-win32/install.cpp                | 17 +++++---
 21 files changed, 102 insertions(+), 94 deletions(-)
Signature · 1 line
2.55.0