qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] error-report: make real_time_iso8601() non-static
@ 2022-08-29 10:06 Dongli Zhang
  2022-08-29 10:06 ` [PATCH 2/2] util/log: add timestamp to logs via qemu_log() Dongli Zhang
  0 siblings, 1 reply; 5+ messages in thread
From: Dongli Zhang @ 2022-08-29 10:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: joe.jin, armbru, richard.henderson, alex.bennee, f4bug

To make real_time_iso8601() a non-static function so that it can be used by
other files later.

No functional change.

Cc: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
---
 include/qemu/error-report.h | 2 ++
 util/error-report.c         | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/qemu/error-report.h b/include/qemu/error-report.h
index 3ae2357..cc73b99 100644
--- a/include/qemu/error-report.h
+++ b/include/qemu/error-report.h
@@ -30,6 +30,8 @@ void loc_set_none(void);
 void loc_set_cmdline(char **argv, int idx, int cnt);
 void loc_set_file(const char *fname, int lno);
 
+char *real_time_iso8601(void);
+
 int error_vprintf(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0);
 int error_printf(const char *fmt, ...) G_GNUC_PRINTF(1, 2);
 
diff --git a/util/error-report.c b/util/error-report.c
index 5edb2e6..63862cd 100644
--- a/util/error-report.c
+++ b/util/error-report.c
@@ -169,8 +169,7 @@ static void print_loc(void)
     }
 }
 
-static char *
-real_time_iso8601(void)
+char *real_time_iso8601(void)
 {
 #if GLIB_CHECK_VERSION(2,62,0)
     g_autoptr(GDateTime) dt = g_date_time_new_now_utc();
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-01  4:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-29 10:06 [PATCH 1/2] error-report: make real_time_iso8601() non-static Dongli Zhang
2022-08-29 10:06 ` [PATCH 2/2] util/log: add timestamp to logs via qemu_log() Dongli Zhang
2022-08-30 11:09   ` Markus Armbruster
2022-08-30 15:31     ` Richard Henderson
2022-09-01  4:17       ` Dongli Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).