From 6da6d905c2aeac17255347037d44c32a62c4c504 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 19 Nov 2021 09:14:38 +0100 Subject: [PATCH] Print scrcpy header first Inconditionnally print the scrcpy version first, without using LOGI(). The log level is configured only after parsing the command line parameters (it may be changed via -V), and command line parsing logs should not appear before the scrcpy version. --- app/src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main.c b/app/src/main.c index 831b98fa..690e4070 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -47,6 +47,9 @@ main(int argc, char *argv[]) { setbuf(stderr, NULL); #endif + printf("scrcpy " SCRCPY_VERSION + " \n"); + struct scrcpy_cli_args args = { .opts = scrcpy_options_default, .help = false, @@ -73,8 +76,6 @@ main(int argc, char *argv[]) { return 0; } - LOGI("scrcpy " SCRCPY_VERSION " "); - #ifdef SCRCPY_LAVF_REQUIRES_REGISTER_ALL av_register_all(); #endif