qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v1 6/6] Convert error_report*_err() to warn_repo


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH v1 6/6] Convert error_report*_err() to warn_report*_err()
Date: Fri, 7 Jul 2017 08:41:49 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hi Francis,

On 07/06/2017 08:49 PM, Alistair Francis wrote:
Convert all uses of error_report*_err("[Ww]arning:"... to use

this is not the regex you used, maybe just use "Warning:"...

warn_report*_err() instead. This helps standardise on a single

standardize? "Enforce single method ..."?

method of printing warnings to the user.

Signed-off-by: Alistair Francis <address@hidden>

Reviewed-by: Philippe Mathieu-Daudé <address@hidden>

Cc: Paolo Bonzini <address@hidden>
Cc: Richard Henderson <address@hidden>
Cc: Eduardo Habkost <address@hidden>
Cc: "Michael S. Tsirkin" <address@hidden>
---

  hw/core/qdev-properties.c | 2 +-
  hw/i386/pc.c              | 3 +--
  2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-properties.c
index f5983c83da..3d0bba21a2 100644
--- a/hw/core/qdev-properties.c
+++ b/hw/core/qdev-properties.c
@@ -1169,7 +1169,7 @@ static void qdev_prop_set_globals_for_type(DeviceState 
*dev,
                  error_propagate(prop->errp, err);
              } else {
                  assert(prop->user_provided);
-                error_reportf_err(err, "Warning: ");
+                warn_report_err(err);
              }
          }
      }
diff --git a/hw/i386/pc.c b/hw/i386/pc.c
index 58f8a4f4a5..5c2cc3f836 100644
--- a/hw/i386/pc.c
+++ b/hw/i386/pc.c
@@ -1320,8 +1320,7 @@ void pc_acpi_init(const char *default_dsdt)
acpi_table_add_builtin(opts, &err);
          if (err) {
-            error_reportf_err(err, "WARNING: failed to load %s: ",
-                              filename);
+            warn_reportf_err(err, "failed to load %s: ", filename);
          }
          g_free(filename);
      }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]