]> xenbits.xensource.com Git - xen.git/commitdiff
dt-overlay: Print overlay I/O memory ranges in hex
authorMichal Orzel <michal.orzel@amd.com>
Fri, 4 Oct 2024 12:22:20 +0000 (14:22 +0200)
committerJulien Grall <jgrall@amazon.com>
Thu, 10 Oct 2024 15:18:56 +0000 (16:18 +0100)
Printing I/O memory rangeset ranges in decimal is not very helpful when
debugging, so switch to hex by adding RANGESETF_prettyprint_hex flag
for iomem_ranges rangeset.

Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/dt-overlay.c

index 4d75b5b36a99ce0c5a28a99a039ed43f2811dce8..5ce00514ef14c0c17be00d39dd05ac4c5b965769 100644 (file)
@@ -869,7 +869,8 @@ static long handle_attach_overlay_nodes(struct domain *d,
         goto out;
     }
 
-    entry->iomem_ranges = rangeset_new(d, "Overlay: I/O Memory", 0);
+    entry->iomem_ranges = rangeset_new(d, "Overlay: I/O Memory",
+                                       RANGESETF_prettyprint_hex);
     if (entry->iomem_ranges == NULL)
     {
         rc = -ENOMEM;