Harald Welte | 0634836 | 2019-05-19 00:45:17 +0200 | [diff] [blame] | 1 | #include <osmocom/core/utils.h> |
| 2 | #include <osmocom/core/logging.h> |
| 3 | #include "logging.h" |
| 4 | |
| 5 | static const struct log_info_cat log_info_cat[] = { |
| 6 | [DUSB] = { |
| 7 | .name = "USB", |
| 8 | .description = "USB Transport", |
| 9 | .enabled = 1, |
| 10 | .loglevel = LOGL_NOTICE, |
| 11 | }, |
| 12 | [DCCID] = { |
| 13 | .name = "CCID", |
| 14 | .description = "USB-CCID Protocol", |
| 15 | .enabled = 1, |
| 16 | .loglevel = LOGL_DEBUG, |
| 17 | }, |
| 18 | [DISO7816] = { |
| 19 | .name = "ISO7816", |
| 20 | .description = "ISO7816-3 State machines", |
| 21 | .enabled = 1, |
| 22 | .loglevel = LOGL_DEBUG, |
| 23 | }, |
| 24 | [DATR] = { |
| 25 | .name = "ATR", |
| 26 | .description = "ATR (Answer To Reset) FSM", |
| 27 | .enabled = 1, |
| 28 | .loglevel = LOGL_DEBUG, |
| 29 | }, |
| 30 | [DTPDU] = { |
| 31 | .name = "TPDU", |
| 32 | .description = "TPDU FSM", |
| 33 | .enabled = 1, |
| 34 | .loglevel = LOGL_DEBUG, |
| 35 | }, |
| 36 | [DPPS] = { |
| 37 | .name = "PPS", |
| 38 | .description = "PPS (Protocol and Parameter Selection) FSM", |
| 39 | .enabled = 1, |
| 40 | .loglevel = LOGL_DEBUG, |
| 41 | }, |
| 42 | }; |
| 43 | |
| 44 | const struct log_info log_info = { |
| 45 | .cat = log_info_cat, |
| 46 | .num_cat = ARRAY_SIZE(log_info_cat), |
| 47 | }; |