[PATCH linux-next] tools/getdelays: fix formatting error

fan.yu9@zte.com.cn posted 1 patch 3 months, 1 week ago
tools/accounting/getdelays.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH linux-next] tools/getdelays: fix formatting error
Posted by fan.yu9@zte.com.cn 3 months, 1 week ago
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
Re: [PATCH linux-next] tools/getdelays: fix formatting error
Posted by wang.yaxin@zte.com.cn 3 months, 1 week ago
>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