projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d68cdae
)
intel_iommu: Fix two misuse of "0x%u" prints
author
Peter Xu
<peterx@redhat.com>
Mon, 19 Oct 2020 17:39:22 +0000
(13:39 -0400)
committer
Michael S. Tsirkin
<mst@redhat.com>
Fri, 30 Oct 2020 10:48:53 +0000
(06:48 -0400)
Dave magically found this. Fix them with "0x%x".
Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <
20201019173922
.100270-1-peterx@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c
patch
|
blob
|
history
diff --git
a/hw/i386/intel_iommu.c
b/hw/i386/intel_iommu.c
index 749eb6ad6329f022e459314b1b0e8042266564b9..70ac83773394b97e1bb572f88a0286888da56e84 100644
(file)
--- a/
hw/i386/intel_iommu.c
+++ b/
hw/i386/intel_iommu.c
@@
-2665,7
+2665,7
@@
static uint64_t vtd_mem_read(void *opaque, hwaddr addr, unsigned size)
if (addr + size > DMAR_REG_SIZE) {
error_report_once("%s: MMIO over range: addr=0x%" PRIx64
- " size=0x%
u
", __func__, addr, size);
+ " size=0x%
x
", __func__, addr, size);
return (uint64_t)-1;
}
@@
-2716,7
+2716,7
@@
static void vtd_mem_write(void *opaque, hwaddr addr,
if (addr + size > DMAR_REG_SIZE) {
error_report_once("%s: MMIO over range: addr=0x%" PRIx64
- " size=0x%
u
", __func__, addr, size);
+ " size=0x%
x
", __func__, addr, size);
return;
}