Commit 3291a564587ae18f776fe132ce1e330fa4090b7b

Authored by henyxia
1 parent 846585f9

Added return value

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
... ... @@ -29,19 +29,22 @@ int main(void)
29 29 printx(ERROR, MAIN, "Unable to start the NFC interface\n");
30 30 return 2;
31 31 }
32   - pthread_create(&tNFC, NULL, processNFC, NULL);
  32 + ret = pthread_create(&tNFC, NULL, processNFC, NULL);
  33 + printx(DEBUG, MAIN, "NFC Started ID %08x ret %d\n", tNFC, ret);
33 34 if(!initBus())
34 35 {
35 36 printx(ERROR, MAIN, "Unable to start the BUS interface\n");
36 37 return 3;
37 38 }
38 39 pthread_create(&tBUS, NULL, processBus, NULL);
  40 + printx(DEBUG, MAIN, "BUS Started ID %08x ret %d\n", tBUS, ret);
39 41 if(!initHVC())
40 42 {
41 43 printx(ERROR, MAIN, "Unable to start the HVC interface\n");
42 44 return 4;
43 45 }
44 46 pthread_create(&tHVC, NULL, processHVC, NULL);
  47 + printx(DEBUG, MAIN, "HVC Started ID %08x ret %d\n", tHVC, ret);
45 48 pthread_join(tUI, NULL);
46 49 closeLog();
47 50 return 0;
... ...