system/composite_main.c: Convert fprintf -> dprintf

CONFIG_FILE_STREAMS now defaults to 'n' when DEFAULT_SMALL is enabled. This
is a good change, but this source file fails to compile when file streams
are disabled.

Fix this by using dprintf.
This commit is contained in:
Ville Juven 2023-03-30 12:18:27 +03:00 committed by Petro Karashchenko
parent 93105568c0
commit c694d8d90f

View File

@ -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;
}
@ -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;
}
@ -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;
}
@ -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;
}