cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-multiboot-Use-header-names-when-displaying-fields.patch

169b9a
From 0bd67b62f13b15c36fa66304fffd70d01382e234 Mon Sep 17 00:00:00 2001
6e672b
From: Kevin Wolf <kwolf@redhat.com>
6e672b
Date: Thu, 26 Jul 2018 16:24:45 +0200
6e672b
Subject: [PATCH 3/8] multiboot: Use header names when displaying fields
6e672b
6e672b
RH-Author: Kevin Wolf <kwolf@redhat.com>
6e672b
Message-id: <20180726162448.22072-4-kwolf@redhat.com>
6e672b
Patchwork-id: 81520
6e672b
O-Subject: [RHEL-7.6/7.5.z qemu-kvm PATCH 3/6] multiboot: Use header names when displaying fields
169b9a
Bugzilla: 1549822
6e672b
RH-Acked-by: John Snow <jsnow@redhat.com>
6e672b
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
6e672b
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
6e672b
6e672b
From: Jack Schwartz <jack.schwartz@oracle.com>
6e672b
6e672b
Refer to field names when displaying fields in printf and debug statements.
6e672b
6e672b
Signed-off-by: Jack Schwartz <jack.schwartz@oracle.com>
6e672b
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
6e672b
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
6e672b
(cherry picked from commit ce5eb6dc4dc5652f7e360a1db817f1d5dafab90f)
6e672b
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
6e672b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
6e672b
---
6e672b
 hw/i386/multiboot.c | 16 ++++++++--------
6e672b
 1 file changed, 8 insertions(+), 8 deletions(-)
6e672b
6e672b
diff --git a/hw/i386/multiboot.c b/hw/i386/multiboot.c
6e672b
index ee2ebd1..c4a361f 100644
6e672b
--- a/hw/i386/multiboot.c
6e672b
+++ b/hw/i386/multiboot.c
6e672b
@@ -203,7 +203,7 @@ int load_multiboot(FWCfgState *fw_cfg,
6e672b
 
6e672b
         mh_load_addr = ldl_p(header+i+16);
6e672b
         if (mh_header_addr < mh_load_addr) {
6e672b
-            fprintf(stderr, "invalid mh_load_addr address\n");
6e672b
+            fprintf(stderr, "invalid load_addr address\n");
6e672b
             exit(1);
6e672b
         }
6e672b
 
6e672b
@@ -213,7 +213,7 @@ int load_multiboot(FWCfgState *fw_cfg,
6e672b
 
6e672b
         if (mh_load_end_addr) {
6e672b
             if (mh_load_end_addr < mh_load_addr) {
6e672b
-                fprintf(stderr, "invalid mh_load_end_addr address\n");
6e672b
+                fprintf(stderr, "invalid load_end_addr address\n");
6e672b
                 exit(1);
6e672b
             }
6e672b
             mb_load_size = mh_load_end_addr - mh_load_addr;
6e672b
@@ -226,7 +226,7 @@ int load_multiboot(FWCfgState *fw_cfg,
6e672b
         }
6e672b
         if (mh_bss_end_addr) {
6e672b
             if (mh_bss_end_addr < (mh_load_addr + mb_load_size)) {
6e672b
-                fprintf(stderr, "invalid mh_bss_end_addr address\n");
6e672b
+                fprintf(stderr, "invalid bss_end_addr address\n");
6e672b
                 exit(1);
6e672b
             }
6e672b
             mb_kernel_size = mh_bss_end_addr - mh_load_addr;
6e672b
@@ -234,10 +234,10 @@ int load_multiboot(FWCfgState *fw_cfg,
6e672b
             mb_kernel_size = mb_load_size;
6e672b
         }
6e672b
 
6e672b
-        mb_debug("multiboot: mh_header_addr = %#x\n", mh_header_addr);
6e672b
-        mb_debug("multiboot: mh_load_addr = %#x\n", mh_load_addr);
6e672b
-        mb_debug("multiboot: mh_load_end_addr = %#x\n", mh_load_end_addr);
6e672b
-        mb_debug("multiboot: mh_bss_end_addr = %#x\n", mh_bss_end_addr);
6e672b
+        mb_debug("multiboot: header_addr = %#x\n", mh_header_addr);
6e672b
+        mb_debug("multiboot: load_addr = %#x\n", mh_load_addr);
6e672b
+        mb_debug("multiboot: load_end_addr = %#x\n", mh_load_end_addr);
6e672b
+        mb_debug("multiboot: bss_end_addr = %#x\n", mh_bss_end_addr);
6e672b
         mb_debug("qemu: loading multiboot kernel (%#x bytes) at %#x\n",
6e672b
                  mb_load_size, mh_load_addr);
6e672b
 
6e672b
@@ -335,7 +335,7 @@ int load_multiboot(FWCfgState *fw_cfg,
6e672b
     stl_p(bootinfo + MBI_BOOT_DEVICE, 0x8000ffff); /* XXX: use the -boot switch? */
6e672b
     stl_p(bootinfo + MBI_MMAP_ADDR,   ADDR_E820_MAP);
6e672b
 
6e672b
-    mb_debug("multiboot: mh_entry_addr = %#x\n", mh_entry_addr);
6e672b
+    mb_debug("multiboot: entry_addr = %#x\n", mh_entry_addr);
6e672b
     mb_debug("           mb_buf_phys   = "TARGET_FMT_plx"\n", mbs.mb_buf_phys);
6e672b
     mb_debug("           mod_start     = "TARGET_FMT_plx"\n", mbs.mb_buf_phys + mbs.offset_mods);
6e672b
     mb_debug("           mb_mods_count = %d\n", mbs.mb_mods_count);
6e672b
-- 
6e672b
1.8.3.1
6e672b