Skip to content

Commit 3348e1e

Browse files
cuitaohtejun
authored andcommitted
cgroup/rdma: fix swapped arguments in pr_warn() format string
The format string says "device %p ... rdma cgroup %p" but the arguments were passed as (cg, device), printing them in the wrong order. Signed-off-by: cuitao <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 6675af9 commit 3348e1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/cgroup/rdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ uncharge_cg_locked(struct rdma_cgroup *cg,
173173
* the system.
174174
*/
175175
if (unlikely(!rpool)) {
176-
pr_warn("Invalid device %p or rdma cgroup %p\n", cg, device);
176+
pr_warn("Invalid device %p or rdma cgroup %p\n", device, cg);
177177
return;
178178
}
179179

0 commit comments

Comments
 (0)