Skip to content

Commit f2c77f6

Browse files
pran005willdeacon
authored andcommitted
iommu/arm-smmu-v3: Use str_read_write helper w/ logs
Adopt the `str_read_write` helper in event logging as suggested by the coccinelle tool. Signed-off-by: Pranjal Shrivastava <[email protected]> Reviewed-by: Nicolin Chen <[email protected]> Link: https://lore.kernel.org/all/20250107130053.GC6991@willie-the-truck/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent aff028a commit f2c77f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,7 @@ static void arm_smmu_dump_event(struct arm_smmu_device *smmu, u64 *raw,
19071907
dev_err(smmu->dev, "%s %s %s %s \"%s\"%s%s stag: %#x",
19081908
evt->privileged ? "priv" : "unpriv",
19091909
evt->instruction ? "inst" : "data",
1910-
evt->read ? "read" : "write",
1910+
str_read_write(evt->read),
19111911
evt->s2 ? "s2" : "s1", event_class_str[evt->class],
19121912
evt->class_tt ? (evt->ttrnw ? " ttd_read" : " ttd_write") : "",
19131913
evt->stall ? " stall" : "", evt->stag);

0 commit comments

Comments
 (0)