gitlab.arm.com will be in the maintainance mode on Wednesday June 29th 01:00 - 10:00 (UTC+1). Repositories is read only during the maintainance.

Commit e1c7c62a authored by Andre Przywara's avatar Andre Przywara Committed by Will Deacon
Browse files

arm: turn pr_info() into pr_debug() messages



For whatever reason on ARM/arm64 machines kvmtool greets us with quite
some elaborate messages:
  Info: Loaded kernel to 0x80080000 (18704896 bytes)
  Info: Placing fdt at 0x8fe00000 - 0x8fffffff
  Info: virtio-mmio.devices=0x200@0x10000:36

  Info: virtio-mmio.devices=0x200@0x10200:37

  Info: virtio-mmio.devices=0x200@0x10400:38

This is not really useful information for the casual user, so change
those lines to use pr_debug().
This also fixes the long standing line ending issue for the mmio output.
Signed-off-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 66454cc2
...@@ -26,7 +26,7 @@ static void dump_fdt(const char *dtb_file, void *fdt) ...@@ -26,7 +26,7 @@ static void dump_fdt(const char *dtb_file, void *fdt)
if (count < 0) if (count < 0)
die_perror("Failed to dump dtb"); die_perror("Failed to dump dtb");
pr_info("Wrote %d bytes to dtb %s\n", count, dtb_file); pr_debug("Wrote %d bytes to dtb %s", count, dtb_file);
close(fd); close(fd);
} }
......
...@@ -113,8 +113,8 @@ bool kvm__arch_load_kernel_image(struct kvm *kvm, int fd_kernel, int fd_initrd, ...@@ -113,8 +113,8 @@ bool kvm__arch_load_kernel_image(struct kvm *kvm, int fd_kernel, int fd_initrd,
die_perror("kernel read"); die_perror("kernel read");
} }
kernel_end = pos + file_size; kernel_end = pos + file_size;
pr_info("Loaded kernel to 0x%llx (%zd bytes)", pr_debug("Loaded kernel to 0x%llx (%zd bytes)",
kvm->arch.kern_guest_start, file_size); kvm->arch.kern_guest_start, file_size);
/* /*
* Now load backwards from the end of memory so the kernel * Now load backwards from the end of memory so the kernel
...@@ -129,9 +129,9 @@ bool kvm__arch_load_kernel_image(struct kvm *kvm, int fd_kernel, int fd_initrd, ...@@ -129,9 +129,9 @@ bool kvm__arch_load_kernel_image(struct kvm *kvm, int fd_kernel, int fd_initrd,
die("fdt overlaps with kernel image."); die("fdt overlaps with kernel image.");
kvm->arch.dtb_guest_start = guest_addr; kvm->arch.dtb_guest_start = guest_addr;
pr_info("Placing fdt at 0x%llx - 0x%llx", pr_debug("Placing fdt at 0x%llx - 0x%llx",
kvm->arch.dtb_guest_start, kvm->arch.dtb_guest_start,
host_to_guest_flat(kvm, limit)); host_to_guest_flat(kvm, limit));
limit = pos; limit = pos;
/* ... and finally the initrd, if we have one. */ /* ... and finally the initrd, if we have one. */
...@@ -159,9 +159,9 @@ bool kvm__arch_load_kernel_image(struct kvm *kvm, int fd_kernel, int fd_initrd, ...@@ -159,9 +159,9 @@ bool kvm__arch_load_kernel_image(struct kvm *kvm, int fd_kernel, int fd_initrd,
kvm->arch.initrd_guest_start = initrd_start; kvm->arch.initrd_guest_start = initrd_start;
kvm->arch.initrd_size = file_size; kvm->arch.initrd_size = file_size;
pr_info("Loaded initrd to 0x%llx (%llu bytes)", pr_debug("Loaded initrd to 0x%llx (%llu bytes)",
kvm->arch.initrd_guest_start, kvm->arch.initrd_guest_start,
kvm->arch.initrd_size); kvm->arch.initrd_size);
} else { } else {
kvm->arch.initrd_size = 0; kvm->arch.initrd_size = 0;
} }
......
...@@ -321,7 +321,8 @@ int virtio_mmio_init(struct kvm *kvm, void *dev, struct virtio_device *vdev, ...@@ -321,7 +321,8 @@ int virtio_mmio_init(struct kvm *kvm, void *dev, struct virtio_device *vdev,
* *
* virtio_mmio.devices=0x200@0xd2000000:5,0x200@0xd2000200:6 * virtio_mmio.devices=0x200@0xd2000000:5,0x200@0xd2000200:6
*/ */
pr_info("virtio-mmio.devices=0x%x@0x%x:%d\n", VIRTIO_MMIO_IO_SIZE, vmmio->addr, vmmio->irq); pr_debug("virtio-mmio.devices=0x%x@0x%x:%d", VIRTIO_MMIO_IO_SIZE,
vmmio->addr, vmmio->irq);
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment