Skip to content

replace all use of strftime() with g_date_time_format()

Daniel P. Berrangé qemu-devel virtio-fs 1 version Applied

Status from this message: Applied to my linux-user-for-6.1 branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 13 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7migration: use GDateTime for formatting timestamp in snapshot namesmigration/savevm.c+5 -82 replies
2/7block: use GDateTime for formatting timestamp when dumping snapshot infoblock/qapi.c+4 -71 reply
3/7net/rocker: use GDateTime for formatting timestamp in debug messageshw/net/rocker/rocker.h+3 -82 replies
4/7usb/dev-mtp: use GDateTime for formatting timestamp for objectshw/usb/dev-mtp.c+3 -61 reply
5/7io: use GDateTime for formatting timestamp for websock headersio/channel-websock.c+2 -82 replies
6/7linux-user: use GDateTime for formatting timestamp for core filelinux-user/elfload.c+9 -272 replies
7/7virtiofsd: use GDateTime for formatting timestamp for debug messagestools/virtiofsd/passthrough_ll.c+4 -213 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchLaurent VivierGerd HoffmannDr. David Alan GilbertMax ReitzJuan Quintela
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v1 thread

Cover letter [PATCH 0/7] replace all use of strftime() with g_date_time_format()

The GDateTime APIs provided by GLib avoid portability pitfalls, such as some platforms where 'struct timeval.tv_sec' field is still 'long' instead of 'time_t'. When combined with automatic cleanup, GDateTime often results in simpler code too.

Daniel P. Berrangé (7):
migration: use GDateTime for formatting timestamp in snapshot names
block: use GDateTime for formatting timestamp when dumping snapshot
info
net/rocker: use GDateTime for formatting timestamp in debug messages usb/dev-mtp: use GDateTime for formatting timestamp for objects
io: use GDateTime for formatting timestamp for websock headers
linux-user: use GDateTime for formatting timestamp for core file
virtiofsd: use GDateTime for formatting timestamp for debug messages

 block/qapi.c                     | 11 ++++------
 hw/net/rocker/rocker.h           | 11 +++-------
 hw/usb/dev-mtp.c                 |  9 +++-----
 io/channel-websock.c             | 10 ++-------
 linux-user/elfload.c             | 36 ++++++++------------------------
 migration/savevm.c               | 13 +++++-------
 tools/virtiofsd/passthrough_ll.c | 25 ++++------------------
 7 files changed, 30 insertions(+), 85 deletions(-)
Signature · 1 line
2.31.1