add tags to logging

This commit is contained in:
Conor Patrick
2018-05-18 11:40:17 -04:00
parent a0f54cf142
commit 6ea2a3bf60
4 changed files with 211 additions and 137 deletions

10
main.c
View File

@@ -6,6 +6,7 @@
#include "usbhid.h"
#include "ctaphid.h"
#include "util.h"
#include "log.h"
#include "ctap.h"
@@ -31,6 +32,15 @@ int main(int argc, char * argv[])
/*dump_hex(buf,sizeof(buf));*/
set_logging_mask(
TAG_MC |
TAG_GA |
TAG_CP |
TAG_CTAP |
TAG_PARSE |
TAG_ERR
);
printf("init usbhid\n");
usbhid_init();
printf("init ctaphid\n");