dpu-utilities/0007-do-not-output-addr-in-kernel.patch
liqiang 56990640b1 update some bugfix to v1.6
Signed-off-by: liqiang <liqiang64@huawei.com>
2023-12-13 17:30:40 +08:00

28 lines
894 B
Diff

From 8b34c899b08ee078e988c900b90d9b925f5535aa Mon Sep 17 00:00:00 2001
From: liqiang <liqiang64@huawei.com>
Date: Mon, 11 Dec 2023 19:48:50 +0800
Subject: [PATCH 07/12] do not output addr in kernel
Signed-off-by: liqiang <liqiang64@huawei.com>
---
qtfs/qtfs/sb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/qtfs/qtfs/sb.c b/qtfs/qtfs/sb.c
index a5bcc8e..0babad1 100644
--- a/qtfs/qtfs/sb.c
+++ b/qtfs/qtfs/sb.c
@@ -156,7 +156,8 @@ int qtfs_readdir(struct file *filp, struct dir_context *ctx)
struct getdents_callback64 *buf = container_of(ctx, struct getdents_callback64, ctx);
if (!pvar || !buf) {
- qtfs_err("Failed to get qtfs sock var(%p) or gentdents(%p)", pvar, buf);
+ qtfs_err("Failed to get qtfs sock var(%s) or gentdents(%s)",
+ (!pvar) ? "INVALID" : "VALID", (!buf) ? "INVALID" : "VALID");
return -EINVAL;
}
--
2.37.1 (Apple Git-137.1)