qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 85/86] numa: make exit() usage consistent


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 85/86] numa: make exit() usage consistent
Date: Thu, 16 Jan 2020 16:40:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

On 1/15/20 4:07 PM, Igor Mammedov wrote:
Signed-off-by: Igor Mammedov <address@hidden>
---
CC: address@hidden
---
  hw/core/numa.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/core/numa.c b/hw/core/numa.c
index 3177066..47d5ea1 100644
--- a/hw/core/numa.c
+++ b/hw/core/numa.c
@@ -718,7 +718,7 @@ void numa_complete_configuration(MachineState *ms)
          /* Report large node IDs first, to make mistakes easier to spot */
          if (!numa_info[i].present) {
              error_report("numa: Node ID missing: %d", i);
-            exit(1);
+            exit(EXIT_FAILURE);
          }
      }
@@ -759,7 +759,7 @@ void numa_complete_configuration(MachineState *ms)
              error_report("total memory for NUMA nodes (0x%" PRIx64 ")"
                           " should equal RAM size (0x" RAM_ADDR_FMT ")",
                           numa_total, ram_size);
-            exit(1);
+            exit(EXIT_FAILURE);
          }
if (!numa_uses_legacy_mem()) {


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




reply via email to

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