Skip to content

Commit 88c72ba

Browse files
arndbdavejiang
authored andcommitted
cxl/region: fix format string for resource_size_t
The size of this type is architecture specific, and the recommended way to print it portably is through the custom %pap format string. Fixes: d6602e2 ("cxl/region: Add support to indicate region has extended linear cache") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com>> --- Reviewed-by: Alison Schofield <alison.schofield@intel.com> Link: https://patch.msgid.link/20251204095237.1032528-1-arnd@kernel.org Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent 269031b commit 88c72ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cxl/core/region.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ static ssize_t extended_linear_cache_size_show(struct device *dev,
759759
ACQUIRE(rwsem_read_intr, rwsem)(&cxl_rwsem.region);
760760
if ((rc = ACQUIRE_ERR(rwsem_read_intr, &rwsem)))
761761
return rc;
762-
return sysfs_emit(buf, "%#llx\n", p->cache_size);
762+
return sysfs_emit(buf, "%pap\n", &p->cache_size);
763763
}
764764
static DEVICE_ATTR_RO(extended_linear_cache_size);
765765

0 commit comments

Comments
 (0)