]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
x86/boot: Use printk_once() instead of opencoding it
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 3 Sep 2024 23:14:24 +0000 (00:14 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Dec 2024 17:33:54 +0000 (17:33 +0000)
Adjust the message for brevity.  No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
xen/arch/x86/setup.c

index 3d51c80626485e7b2791f6df26c33c60a3136698..397347bea4e946f7ad607689e426020ac0ec9bf7 100644 (file)
@@ -1072,7 +1072,7 @@ void asmlinkage __init noreturn __start_xen(void)
     unsigned int initrdidx, num_parked = 0;
     struct boot_info *bi;
     unsigned long nr_pages, raw_max_page;
-    int i, j, e820_warn = 0, bytes = 0;
+    int i, j, bytes = 0;
     unsigned long eb_start, eb_end;
     bool acpi_boot_table_init_done = false, relocated = false;
     bool vm_init_done = false;
@@ -1309,12 +1309,8 @@ void asmlinkage __init noreturn __start_xen(void)
              */
             if ( (map->base_addr_high == 0) && (map->length_high != 0) )
             {
-                if ( !e820_warn )
-                {
-                    printk("WARNING: Buggy e820 map detected and fixed "
-                           "(truncated length fields).\n");
-                    e820_warn = 1;
-                }
+                printk_once(XENLOG_WARNING
+                            "WARNING: Buggy e820 map detected; truncated length\n");
                 map->length_high = 0;
             }