[PATCH v2] error-report: fix g_date_time_format assertion

2022-04-24 Thread Haiyue Wang
Call function 'g_date_time_new_now_utc' instead, it has the same result as 'g_date_time_new_from_unix_utc(g_get_real_time() / G_USEC_PER_SEC)'; Fixes: 73dab893b569 ("error-report: replace deprecated g_get_current_time() with glib >= 2.62") Signed-off-by: Haiyue Wang

[PATCH v1] error-report: fix g_date_time_format assertion

2022-04-24 Thread Haiyue Wang
Call 'g_date_time_new_now' with UTC time zone, it has the same result as 'g_date_time_new_from_unix_utc(g_get_real_time()/1e6)'; Fixes: 73dab893b569 ("error-report: replace deprecated g_get_current_time() with glib >= 2.62") Signed-off-by: Haiyue Wang --- util/error-report.c | 2 +- 1

[PATCH v2] aio-posix: fix build failure io_uring 2.2

2022-02-21 Thread Haiyue Wang
r *’ 415 | __u64 user_data) | ~~^ cc1: all warnings being treated as errors Use LIBURING_HAVE_DATA64 to check whether the io_uring supports 64-bit variants of the get/set userdata, to convert the paramter to the right data type. Signed-off-by: Haiyue Wang ---

[PATCH v1] aio-posix: fix build failure io_uring 2.2

2022-02-17 Thread Haiyue Wang
r *’ 415 | __u64 user_data) | ~~^ cc1: all warnings being treated as errors So convert the paramter to right type according to the io_uring define. Signed-off-by: Haiyue Wang --- util/fdmon-io_uring.c | 4 1 file changed, 4 insertions(+) diff --git a/