Re: [PATCH 11/12] src: replace gmtime_r/localtime_r/strftime with GDateTime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 14, 2020 at 04:22:39PM +0100, Pavel Hrdina wrote:
On Fri, Jan 10, 2020 at 03:41:15PM +0000, Daniel P. Berrangé wrote:
gmtime_r/localtime_r are mostly used in combination with
strftime to format timestamps in libvirt. This can all
be replaced with GDateTime resulting in simpler code
that is also more portable.

There is some boundary condition problem in parsing POSIX
timezone offsets in GLib which tickles our test suite.
The test suite is hacked to avoid the problem. The upsteam

Also, s/upsteam/upstream/

GLib bug report is

Missing link to the bug report, it's only in the comment in
virtimetest.c.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/conf/domain_conf.c       | 11 ++++----
 src/libxl/libxl_domain.c     | 10 +++----
 src/qemu/qemu_command.c      | 17 ++++-------
 src/qemu/qemu_driver.c       | 10 +++----
 src/util/virtime.c           | 35 ++++-------------------
 tests/qemuxml2argvmock.c     | 12 ++++----
 tests/virtimetest.c          | 39 +++++++++++++------------
 tools/virsh-checkpoint.c     | 20 +++++--------
 tools/virsh-domain-monitor.c | 14 ++++-----
 tools/virsh-domain.c         | 13 ++++-----
 tools/virsh-network.c        | 11 ++++----
 tools/virsh-snapshot.c       | 19 ++++---------
 tools/virt-admin.c           | 55 ++++++++----------------------------
 tools/vsh.c                  | 16 ++++-------
 14 files changed, 96 insertions(+), 186 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina@xxxxxxxxxx>



--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux