Support --debug option for exacmple-cdc-gnu-linux.

This commit is contained in:
NIIBE Yutaka
2017-10-10 12:18:35 +09:00
parent a34937453c
commit fa7cecc0b4
2 changed files with 4 additions and 2 deletions

View File

@@ -98,8 +98,8 @@ main (int argc, const char *argv[])
uint8_t count;
uintptr_t addr;
(void)argc;
(void)argv;
if (argc >= 2 && !strncmp (argv[1], "--debug=", 8))
debug = strtol (&argv[1][8], NULL, 10);
chopstx_mutex_init (&mtx);
chopstx_cond_init (&cnd0);