blob: 4e14815b8cd9eae20df2273e0f4f967e47d0006a [file] [log] [blame]
Harald Welte06348362019-05-19 00:45:17 +02001#include <osmocom/core/utils.h>
2#include <osmocom/core/logging.h>
3#include "logging.h"
4
5static 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
44const struct log_info log_info = {
45 .cat = log_info_cat,
46 .num_cat = ARRAY_SIZE(log_info_cat),
47};