summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorcuitao <cuitao@kylinos.cn>2026-04-09 13:21:35 +0800
committerTejun Heo <tj@kernel.org>2026-04-09 22:30:08 -1000
commit3348e1e83a0f8a5ca1095843bc3316aaef7aae34 (patch)
tree5897853112eb63cf861dc47468b49b90fd6c64a1 /kernel
parent6675af9c1a3251ff95ef1290f9317ba0e83ce99d (diff)
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup/rdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/cgroup/rdma.c b/kernel/cgroup/rdma.c
index 09258eebb5c7..9967fb25c563 100644
--- a/kernel/cgroup/rdma.c
+++ b/kernel/cgroup/rdma.c
@@ -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;
}