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 <cuitao@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
cuitao
2026-04-09 13:21:35 +08:00
committed by Tejun Heo
parent 6675af9c1a
commit 3348e1e83a

View File

@@ -173,7 +173,7 @@ uncharge_cg_locked(struct rdma_cgroup *cg,
* the system.
*/
if (unlikely(!rpool)) {
pr_warn("Invalid device %p or rdma cgroup %p\n", cg, device);
pr_warn("Invalid device %p or rdma cgroup %p\n", device, cg);
return;
}