2023-12-20 06:30:06

by Yang Jialong 杨佳龙

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: JiaLong.Yang <[email protected]>
---
Documentation/translations/zh_CN/core-api/printk-basics.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/translations/zh_CN/core-api/printk-basics.rst b/Documentation/translations/zh_CN/core-api/printk-basics.rst
index 59c6efb3fc41..cafa01bccff2 100644
--- a/Documentation/translations/zh_CN/core-api/printk-basics.rst
+++ b/Documentation/translations/zh_CN/core-api/printk-basics.rst
@@ -100,7 +100,7 @@ printk()的用法通常是这样的::

为了调试,还有两个有条件编译的宏:
pr_debug()和pr_devel(),除非定义了 ``DEBUG`` (或者在pr_debug()的情况下定义了
-``CONFIG_DYNAMIC_DEBUG`` ),否则它们会被编译。
+``CONFIG_DYNAMIC_DEBUG`` ),否则它们不会被编译。


函数接口
--
2.25.1



2023-12-20 07:28:46

by Yanteng Si

[permalink] [raw]
Subject: Re: [PATCH] Docs/zh_CN: Fix the meaning of DEBUG to pr_debug()


在 2023/12/20 14:28, 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.
>
> Signed-off-by: JiaLong.Yang <[email protected]>

Acked-by: Yanteng Si <[email protected]>


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


Thanks,

Yanteng

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


2023-12-21 05:59:35

by Yang Jialong 杨佳龙

[permalink] [raw]
Subject: [PATCH V2] 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.

Signed-off-by: JiaLong.Yang <[email protected]>
link: https://lore.kernel.org/lkml/[email protected]/
Reviewed-by: Zenghui Yu <[email protected]>
link: https://lore.kernel.org/lkml/[email protected]/
Acked-by: Yanteng Si <[email protected]>
---

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(-)

diff --git a/Documentation/translations/zh_CN/core-api/printk-basics.rst b/Documentation/translations/zh_CN/core-api/printk-basics.rst
index 59c6efb3fc41..cafa01bccff2 100644
--- a/Documentation/translations/zh_CN/core-api/printk-basics.rst
+++ b/Documentation/translations/zh_CN/core-api/printk-basics.rst
@@ -100,7 +100,7 @@ printk()的用法通常是这样的::

为了调试,还有两个有条件编译的宏:
pr_debug()和pr_devel(),除非定义了 ``DEBUG`` (或者在pr_debug()的情况下定义了
-``CONFIG_DYNAMIC_DEBUG`` ),否则它们会被编译。
+``CONFIG_DYNAMIC_DEBUG`` ),否则它们不会被编译。


函数接口
--
2.25.1


2024-01-03 21:23:52

by Jonathan Corbet

[permalink] [raw]
Subject: Re: [PATCH V2] Docs/zh_CN: Fix the meaning of DEBUG to pr_debug()

"JiaLong.Yang" <[email protected]> writes:

> 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.
>
> Signed-off-by: JiaLong.Yang <[email protected]>
> link: https://lore.kernel.org/lkml/[email protected]/
> Reviewed-by: Zenghui Yu <[email protected]>
> link: https://lore.kernel.org/lkml/[email protected]/
> Acked-by: Yanteng Si <[email protected]>
> ---
>
> V2: add commit info.
> Maybe now I have known about the process of patch.
> Sorry for wasting time of yours.

Applied, thanks.

jon