Skip to content

Commit 8cb2e32

Browse files
committed
Mark hex values as such in error messages
Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
1 parent 0350e89 commit 8cb2e32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mmio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ ocxl_err ocxl_mmio_map_advanced(ocxl_afu_h afu, ocxl_mmio_type type, size_t size
279279
case OCXL_GLOBAL_MMIO:
280280
if (offset + size > afu->global_mmio.length) {
281281
rc = OCXL_NO_MEM;
282-
errmsg(afu, rc, "Offset(%x) + size(%x) of global MMIO map request exceeds available size of %x",
282+
errmsg(afu, rc, "Offset(%#x) + size(%#x) of global MMIO map request exceeds available size of %#x",
283283
offset, size, afu->global_mmio.length);
284284
return rc;
285285
}
@@ -289,7 +289,7 @@ ocxl_err ocxl_mmio_map_advanced(ocxl_afu_h afu, ocxl_mmio_type type, size_t size
289289
case OCXL_PER_PASID_MMIO:
290290
if (offset + size > afu->global_mmio.length) {
291291
rc = OCXL_NO_MEM;
292-
errmsg(afu, rc, "Offset(%x) + size(%x) of global MMIO map request exceeds available size of %x",
292+
errmsg(afu, rc, "Offset(%#x) + size(%#x) of per-pasid MMIO map request exceeds available size of %#x",
293293
offset, size, afu->global_mmio.length);
294294
return rc;
295295
}

0 commit comments

Comments
 (0)