Skip to content

Commit d7b9056

Browse files
aloktiwadavejiang
authored andcommitted
cxl/edac: Use correct format specifier for u32 val
The dev_dbg() message in cxl_set_ecs_threshold() used %d for an unsigned value, which could lead to incorrect logging. Update the format specifier to %u to match variable type. Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com> Reviewed-by: Shiju Jose <shiju.jose@huawei.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com?> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Link: https://patch.msgid.link/20250622183919.4156343-1-alok.a.tiwari@oracle.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent 8ad8579 commit d7b9056

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cxl/core/edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ static int cxl_set_ecs_threshold(struct device *dev, u8 *log_cap, u16 *config,
697697
ECS_THRESHOLD_IDX_4096);
698698
break;
699699
default:
700-
dev_dbg(dev, "Invalid CXL ECS threshold count(%d) to set\n",
700+
dev_dbg(dev, "Invalid CXL ECS threshold count(%u) to set\n",
701701
val);
702702
dev_dbg(dev, "Supported ECS threshold counts: %u, %u, %u\n",
703703
ECS_THRESHOLD_256, ECS_THRESHOLD_1024,

0 commit comments

Comments
 (0)