Skip to contentSkip to conversation

Error reporting patches for 2017-07-24

GIT PULL Applied Markus Armbruster 2 participants 3 messages Jul 24, 2017

lore
Share & tools
lore
#0 lore raw

The following changes since commit df95f1a298a3e16c80293343143dcedbe7978f6c:

Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20170721-tag' into staging (2017-07-24 10:01:15 +0100)

are available in the git repository at:

git://repo.or.cz/qemu/armbru.git tags/pull-error-2017-07-24

for you to fetch changes up to 70f17a15ca0fe47eeae1ac83086130e6e7ba57c8:

error: Revert unwanted change of warning messages (2017-07-24 14:16:29 +0200)

----------------------------------------------------------------
Error reporting patches for 2017-07-24

----------------------------------------------------------------
Markus Armbruster (1):
error: Revert unwanted change of warning messages

 util/qemu-error.c | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)
Signature · 1 line
2.7.5
#1 lore raw

[Qemu-devel] [PULL 1/1] error: Revert unwanted change of warning messages

Commit 97f4030 changed warning messages from

timestamp-if-enabled progname ":" location "warning: " message

to

"warning: " timestamp-if-enabled progname ":" location message

This regressed qemu-iotests 051. Put "warning: " right back where it was, along with "info: ".

Message-Id: <[email protected]>

---
 util/qemu-error.c | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)
util/qemu-error.c +12 -11
index c557c6a..a25d3b9 100644
@@ -201,17 +201,6 @@ static void vreport(report_type type, const char *fmt, va_list ap)
     GTimeVal tv;
     gchar *timestr;
 
-    switch (type) {
-    case REPORT_TYPE_ERROR:
-        break;
-    case REPORT_TYPE_WARNING:
-        error_printf("warning: ");
-        break;
-    case REPORT_TYPE_INFO:
-        error_printf("info: ");
-        break;
-    }
-
     if (enable_timestamp_msg && !cur_mon) {
         g_get_current_time(&tv);
         timestr = g_time_val_to_iso8601(&tv);
@@ -220,6 +209,18 @@ static void vreport(report_type type, const char *fmt, va_list ap)
     }
 
     print_loc();
+
+    switch (type) {
+    case REPORT_TYPE_ERROR:
+        break;
+    case REPORT_TYPE_WARNING:
+        error_printf("warning: ");
+        break;
+    case REPORT_TYPE_INFO:
+        error_printf("info: ");
+        break;
+    }
+
     error_vprintf(fmt, ap);
     error_printf("\n");
 }
Signature · 1 line
2.7.5
#2 lore raw
In reply to Markus Armbruster
Quoted 15 lines · Markus Armbruster

The following changes since commit df95f1a298a3e16c80293343143dcedbe7978f6c:

Merge remote-tracking branch 'remotes/sstabellini/tags/xen-20170721-tag' into staging (2017-07-24 10:01:15 +0100)

are available in the git repository at:

git://repo.or.cz/qemu/armbru.git tags/pull-error-2017-07-24

for you to fetch changes up to 70f17a15ca0fe47eeae1ac83086130e6e7ba57c8:

error: Revert unwanted change of warning messages (2017-07-24 14:16:29 +0200)

----------------------------------------------------------------
Error reporting patches for 2017-07-24

Quoted 6 lines

----------------------------------------------------------------
Markus Armbruster (1):
error: Revert unwanted change of warning messages

 util/qemu-error.c | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Applied, thanks.

-- PMM