Show platform name when verbose option is on

This commit is contained in:
Iwan Timmer
2017-06-11 18:07:24 +02:00
parent e06a78130a
commit b0660e9dd3
3 changed files with 24 additions and 0 deletions

View File

@@ -240,6 +240,8 @@ int main(int argc, char* argv[]) {
} else if (strcmp("stream", config.action) == 0) {
pair_check(&server);
enum platform system = platform_check(config.platform);
if (config.debug_level > 0)
printf("Platform %s\n", platform_name(system));
if (system == 0) {
fprintf(stderr, "Platform '%s' not found\n", config.platform);