From 651d588f030097c4950331f8fffb9d442f89ba11 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Mon, 25 Jan 2021 11:35:06 +0000 Subject: error: rename error_with_timestamp to message_with_timestamp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The -msg timestamp=on|off option controls whether a timestamp is printed with error_report() messages. The "-msg" name suggests that this option has a wider effect than just error_report(). The next patch extends it to the 'log' trace backend, so rename the variable from error_with_timestamp to message_with_timestamp. Signed-off-by: Stefan Hajnoczi Tested-by: Philippe Mathieu-Daudé Tested-by: BALATON Zoltan Reviewed-by: Philippe Mathieu-Daudé Message-id: 20210125113507.224287-2-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi --- util/qemu-error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/qemu-error.c') diff --git a/util/qemu-error.c b/util/qemu-error.c index aa30f03564..52a9e013c4 100644 --- a/util/qemu-error.c +++ b/util/qemu-error.c @@ -25,7 +25,7 @@ typedef enum { } report_type; /* Prepend timestamp to messages */ -bool error_with_timestamp; +bool message_with_timestamp; bool error_with_guestname; const char *error_guest_name; @@ -208,7 +208,7 @@ static void vreport(report_type type, const char *fmt, va_list ap) GTimeVal tv; gchar *timestr; - if (error_with_timestamp && !monitor_cur()) { + if (message_with_timestamp && !monitor_cur()) { g_get_current_time(&tv); timestr = g_time_val_to_iso8601(&tv); error_printf("%s ", timestr); -- cgit v1.2.3