Skip to contentSkip to conversation

Docs/zh_CN: Fix the meaning of DEBUG to pr_debug()

PATCH Superseded JiaLong.Yang 3 participants 4 messages Dec 20, 2023 – Jan 3, 2024 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 Docs/zh_CN: Fix the meaning of DEBUG to pr_debug()

We know the macro DEBUG will make pr_debug() save the formatted string into final binary. So the translation is a little wrong.

---
 Documentation/translations/zh_CN/core-api/printk-basics.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/translations/zh_CN/core-api/printk-basics.rst +1 -1
index 59c6efb3fc41..cafa01bccff2 100644
@@ -100,7 +100,7 @@ printk()的用法通常是这样的::
 
 为了调试,还有两个有条件编译的宏:
 pr_debug()和pr_devel(),除非定义了 ``DEBUG`` (或者在pr_debug()的情况下定义了
-``CONFIG_DYNAMIC_DEBUG`` ),否则它们会被编译。
+``CONFIG_DYNAMIC_DEBUG`` ),否则它们不会被编译。
 
 
 函数接口
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#2 lore raw
Quoted 4 lines · JiaLong.Yang

We know the macro DEBUG will make pr_debug() save the formatted string into final binary. So the translation is a little wrong.

BTW, you lost Zenghui's Reviewed-by tag. :)

Thanks,

Yanteng

Quoted 17 lines
---
  Documentation/translations/zh_CN/core-api/printk-basics.rst | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/translations/zh_CN/core-api/printk-basics.rst +1 -1
index 59c6efb3fc41..cafa01bccff2 100644
@@ -100,7 +100,7 @@ printk()的用法通常是这样的::
 
  为了调试,还有两个有条件编译的宏:
  pr_debug()和pr_devel(),除非定义了 ``DEBUG`` (或者在pr_debug()的情况下定义了
-``CONFIG_DYNAMIC_DEBUG`` ),否则它们会被编译。
+``CONFIG_DYNAMIC_DEBUG`` ),否则它们不会被编译。
 
 
  函数接口
#3 lore raw

PATCH v2 1/1 Docs/zh_CN: Fix the meaning of DEBUG to pr_debug()

We know the macro DEBUG will make pr_debug() save the formatted string into final binary. But the translation in chinese gives a opposite meaning.

---

V2: add commit info.
Maybe now I have known about the process of patch. Sorry for wasting time of yours.

 Documentation/translations/zh_CN/core-api/printk-basics.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/translations/zh_CN/core-api/printk-basics.rst +1 -1
index 59c6efb3fc41..cafa01bccff2 100644
@@ -100,7 +100,7 @@ printk()的用法通常是这样的::
 
 为了调试,还有两个有条件编译的宏:
 pr_debug()和pr_devel(),除非定义了 ``DEBUG`` (或者在pr_debug()的情况下定义了
-``CONFIG_DYNAMIC_DEBUG`` ),否则它们会被编译。
+``CONFIG_DYNAMIC_DEBUG`` ),否则它们不会被编译。
 
 
 函数接口
Signature · 1 line
2.25.1
maintainer Applied
#4 lore raw
Quoted 9 lines · JiaLong.Yang

We know the macro DEBUG will make pr_debug() save the formatted string into final binary. But the translation in chinese gives a opposite meaning.

Quoted 5 lines

---

V2: add commit info.
Maybe now I have known about the process of patch. Sorry for wasting time of yours.

Applied, thanks.

jon