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

Daniel P. Berrangé posted 7 patches 2 years, 11 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210505103702.521457-1-berrange@redhat.com
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(-)
[PATCH 0/7] replace all use of strftime() with g_date_time_format()
Posted by Daniel P. Berrangé 2 years, 11 months ago
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(-)

-- 
2.31.1