linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-next] tools/getdelays: fix formatting error
@ 2025-09-01 12:10 fan.yu9
  2025-09-01 12:24 ` wang.yaxin
  0 siblings, 1 reply; 2+ messages in thread
From: fan.yu9 @ 2025-09-01 12:10 UTC (permalink / raw)
  To: akpm, wang.yaxin, corbet
  Cc: linux-kernel, linux-doc, fan.yu9, wang.yaxin, xu.xin16,
	yang.yang29

From: Fan Yu <fan.yu9@zte.com.cn>

Add a missing space in err() function call for consistency.
The change improves consistency with the codebase style
and enhances readability.

Signed-off-by: Fan Yu <fan.yu9@zte.com.cn>
---
 tools/accounting/getdelays.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/accounting/getdelays.c b/tools/accounting/getdelays.c
index 21cb3c3d1331..0c721efafab9 100644
--- a/tools/accounting/getdelays.c
+++ b/tools/accounting/getdelays.c
@@ -570,7 +570,7 @@ int main(int argc, char *argv[])
                                                        task_context_switch_counts((struct taskstats *) NLA_DATA(na));
                                                if (fd) {
                                                        if (write(fd, NLA_DATA(na), na->nla_len) < 0) {
-                                                               err(1,"write error\n");
+                                                               err(1, "write error\n");
                                                        }
                                                }
                                                if (!loop)
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH linux-next] tools/getdelays: fix formatting error
  2025-09-01 12:10 [PATCH linux-next] tools/getdelays: fix formatting error fan.yu9
@ 2025-09-01 12:24 ` wang.yaxin
  0 siblings, 0 replies; 2+ messages in thread
From: wang.yaxin @ 2025-09-01 12:24 UTC (permalink / raw)
  To: fan.yu9
  Cc: akpm, corbet, linux-kernel, linux-doc, fan.yu9, xu.xin16,
	yang.yang29

>From: Fan Yu <fan.yu9@zte.com.cn>
>
>Add a missing space in err() function call for consistency.
>The change improves consistency with the codebase style
>and enhances readability.
>
>Signed-off-by: Fan Yu <fan.yu9@zte.com.cn>
>---
>tools/accounting/getdelays.c | 2 +-
>1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/tools/accounting/getdelays.c b/tools/accounting/getdelays.c
>index 21cb3c3d1331..0c721efafab9 100644
>--- a/tools/accounting/getdelays.c
>+++ b/tools/accounting/getdelays.c
>@@ -570,7 +570,7 @@ int main(int argc, char *argv[])
>task_context_switch_counts((struct taskstats *) NLA_DATA(na));
>if (fd) {
>if (write(fd, NLA_DATA(na), na->nla_len) < 0) {
>- err(1,"write error\n");
>+ err(1, "write error\n");
>}
>}
>if (!loop)

Reviewed-by: Wang Yaxin <wang.yaxin@zte.com.cn>

Thanks
Yaxin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-01 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-01 12:10 [PATCH linux-next] tools/getdelays: fix formatting error fan.yu9
2025-09-01 12:24 ` wang.yaxin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).