cxl/region: fix format string for resource_size_t
PATCH 1/1 cxl/region: fix format string for resource_size_t
From: Arnd Bergmann <[email protected]>
The size of this type is architecture specific, and the recommended way to print it portably is through the custom %pap format string.
--- drivers/cxl/core/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cxl/core/region.c +1 -1
@@ -759,7 +759,7 @@ static ssize_t extended_linear_cache_size_show(struct device *dev,ACQUIRE (rwsem_read_intr, rwsem)(&cxl_rwsem.region);if ((rc =ACQUIRE_ERR (rwsem_read_intr, &rwsem)))return rc; -return sysfs_emit (buf,"%#llx\n" , p->cache_size); +return sysfs_emit (buf,"%pap\n" , &p->cache_size); }static DEVICE_ATTR_RO (extended_linear_cache_size);
Signature · 1 line
2.39.5
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The size of this type is architecture specific, and the recommended way to print it portably is through the custom %pap format string.
Fixes d6602e25819d ("cxl/region: Add support to indicate region has extended linear cache")Signed-off-by Arnd Bergmann <[email protected]>
Quoted 16 lines
drivers/cxl/core/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cxl/core/region.c +1
-1@@ -759,7 +759,7 @@ static ssize_t extended_linear_cache_size_show(struct device *dev,ACQUIRE (rwsem_read_intr, rwsem)(&cxl_rwsem.region);if ((rc =ACQUIRE_ERR (rwsem_read_intr, &rwsem)))return rc; -return sysfs_emit (buf,"%#llx\n" , p->cache_size); +return sysfs_emit (buf,"%pap\n" , &p->cache_size); }static DEVICE_ATTR_RO (extended_linear_cache_size);
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The size of this type is architecture specific, and the recommended way to print it portably is through the custom %pap format string.
Fixes d6602e25819d ("cxl/region: Add support to indicate region has extended linear cache")Signed-off-by Arnd Bergmann <[email protected]>
[snip]
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The size of this type is architecture specific, and the recommended way to print it portably is through the custom %pap format string.
Fixes d6602e25819d ("cxl/region: Add support to indicate region has extended linear cache")Signed-off-by Arnd Bergmann <[email protected]>
Quoted 7 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The size of this type is architecture specific, and the recommended way to print it portably is through the custom %pap format string.
Fixes d6602e25819d ("cxl/region: Add support to indicate region has extended linear cache")Signed-off-by Arnd Bergmann <[email protected]>
Applied to cxl/fixes88c72bab77aaf389beccf762e112828253ca0564
DJ
Quoted 17 lines
--- drivers/cxl/core/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cxl/core/region.c +1
-1@@ -759,7 +759,7 @@ static ssize_t extended_linear_cache_size_show(struct device *dev,ACQUIRE (rwsem_read_intr, rwsem)(&cxl_rwsem.region);if ((rc =ACQUIRE_ERR (rwsem_read_intr, &rwsem)))return rc; -return sysfs_emit (buf,"%#llx\n" , p->cache_size); +return sysfs_emit (buf,"%pap\n" , &p->cache_size); }static DEVICE_ATTR_RO (extended_linear_cache_size);