| 1339 | #endif |
| 1340 | |
| 1341 | static void |
| 1342 | eal_log_usage(void) |
| 1343 | { |
| 1344 | unsigned int level; |
| 1345 | |
| 1346 | printf("Log type is a pattern matching items of this list" |
| 1347 | " (plugins may be missing):\n"); |
| 1348 | rte_log_list_types(stdout, "\t"); |
| 1349 | printf("\n"); |
| 1350 | printf("Syntax using globbing pattern: "); |
| 1351 | printf("--"OPT_LOG_LEVEL" pattern:level\n"); |
| 1352 | printf("Syntax using regular expression: "); |
| 1353 | printf("--"OPT_LOG_LEVEL" regexp,level\n"); |
| 1354 | printf("Syntax for the global level: "); |
| 1355 | printf("--"OPT_LOG_LEVEL" level\n"); |
| 1356 | printf("Logs are emitted if allowed by both global and specific levels.\n"); |
| 1357 | printf("\n"); |
| 1358 | printf("Log level can be a number or the first letters of its name:\n"); |
| 1359 | for (level = 1; level <= RTE_LOG_MAX; level++) |
| 1360 | printf("\t%d %s\n", level, eal_log_level2str(level)); |
| 1361 | } |
| 1362 | |
| 1363 | static int |
| 1364 | eal_parse_log_priority(const char *level) |
no test coverage detected