Changeset 4955:5a13f6cdde6e in roaraudio for roard/roard.c
- Timestamp:
- 05/13/11 17:51:25 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/roard.c
r4934 r4955 1332 1332 int i; 1333 1333 char * k; 1334 enum output_format print_format = FORMAT_NATIVE; 1334 1335 #endif 1335 1336 #if defined(ROAR_SUPPORT_LISTEN) && defined(ROAR_HAVE_GETUID) … … 1590 1591 ROAR_ERR("--daemon not supported"); 1591 1592 #endif 1592 } else if ( strcmp(k, "-- verbose") == 0 ) {1593 } else if ( strcmp(k, "--print-format") == 0 ) { 1593 1594 g_verbose++; 1595 k = argv[++i]; 1596 if ( !strcasecmp(k, "native") ) { 1597 print_format = FORMAT_NATIVE; 1598 } else if ( !strcasecmp(k, "wiki") ) { 1599 print_format = FORMAT_WIKI; 1600 } else if ( !strcasecmp(k, "csv") ) { 1601 print_format = FORMAT_CSV; 1602 } else { 1603 ROAR_WARN("Unknown print format: %s", k); 1604 } 1605 1606 } else if ( strcmp(k, "--print-format") == 0 ) { 1607 _CKHAVEARGS(1); 1608 1594 1609 } else if ( strcmp(k, "--terminate") == 0 ) { 1595 1610 g_terminate = 1; … … 1740 1755 1741 1756 } else if ( strcmp(k, "--list-driver") == 0 ) { 1742 print_driverlist( );1757 print_driverlist(print_format); 1743 1758 return 0; 1744 1759
Note: See TracChangeset
for help on using the changeset viewer.