Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system/composite_main.c: Hide fprintf behind macro to handle FILE_STR… #1693

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions system/composite/composite_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ int main(int argc, FAR char *argv[])

if (g_composite.cmphandle)
{
fprintf(stderr, "conn_main: ERROR: Already connected\n");
dprintf(STDERR_FILENO, "conn_main: ERROR: Already connected\n");
return 1;
}

Expand All @@ -410,7 +410,8 @@ int main(int argc, FAR char *argv[])
}
else if (argc > 2)
{
fprintf(stderr, "conn_main: ERROR: Too many arguments: %d\n", argc);
dprintf(STDERR_FILENO, "conn_main: ERROR: Too many arguments: %d\n",
argc);
return EXIT_FAILURE;
}

Expand Down Expand Up @@ -513,7 +514,7 @@ int disconn_main(int argc, char *argv[])

if (!g_composite.cmphandle)
{
fprintf(stderr, "disconn_main: ERROR: Not connected\n");
dprintf(STDERR_FILENO, "disconn_main: ERROR: Not connected\n");
return 1;
}

Expand All @@ -527,7 +528,8 @@ int disconn_main(int argc, char *argv[])
}
else if (argc > 2)
{
fprintf(stderr, "conn_main: ERROR: Too many arguments: %d\n", argc);
dprintf(STDERR_FILENO, "conn_main: ERROR: Too many arguments: %d\n",
argc);
return EXIT_FAILURE;
}

Expand Down