Skip to contentSkip to conversation

block: remove useless req addr print in debugfs

PATCH In review Guixin Liu 2 participants 3 messages Mar 12, 2025 – Mar 14, 2025 Block layer

lore
Share & tools
lore

Guixin Liu

author
#0 lore raw

PATCH 1/1 block: remove useless req addr print in debugfs

Using %p to print kernel address will only print a hashed address which is not the real address, this is useless for issue identification, simply remove it.

---
 block/blk-mq-debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-mq-debugfs.c +1 -1
index adf5f0697b6b..b4da95150d8d 100644
@@ -265,7 +265,7 @@ int __blk_mq_debugfs_rq_show(struct seq_file *m, struct request *rq)
 	BUILD_BUG_ON(ARRAY_SIZE(cmd_flag_name) != __REQ_NR_BITS);
 	BUILD_BUG_ON(ARRAY_SIZE(rqf_name) != __RQF_BITS);
 
-	seq_printf(m, "%p {.op=", rq);
+	seq_printf(m, "{.op=");
 	if (strcmp(op_str, "UNKNOWN") == 0)
 		seq_printf(m, "%u", op);
 	else
Signature · 1 line
2.43.0
author
#1 lore raw

Gently ping...

Best Regards,

Guixin Liu

Quoted 22 lines · Guixin Liu

Using %p to print kernel address will only print a hashed address which is not the real address, this is useless for issue identification, simply remove it.

---
  block/blk-mq-debugfs.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-mq-debugfs.c +1 -1
index adf5f0697b6b..b4da95150d8d 100644
@@ -265,7 +265,7 @@ int __blk_mq_debugfs_rq_show(struct seq_file *m, struct request *rq)
  	BUILD_BUG_ON(ARRAY_SIZE(cmd_flag_name) != __REQ_NR_BITS);
  	BUILD_BUG_ON(ARRAY_SIZE(rqf_name) != __RQF_BITS);
 
-	seq_printf(m, "%p {.op=", rq);
+	seq_printf(m, "{.op=");
  	if (strcmp(op_str, "UNKNOWN") == 0)
  		seq_printf(m, "%u", op);
  	else
maintainer
#2 lore raw
Quoted 1 line · Guixin Liu

Gently ping...

Don't send a ping after 1 day, that's totally unnecessary. Especially for a patch that isn't an urgent fix, it's just an odd ball cleanup. Reviewers have more important things to look at, and we'll get to yours in due time.

Signature · 1 line
Jens Axboe