Commit 3291a564587ae18f776fe132ce1e330fa4090b7b
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,19 +29,22 @@ int main(void) | ||
29 | printx(ERROR, MAIN, "Unable to start the NFC interface\n"); | 29 | printx(ERROR, MAIN, "Unable to start the NFC interface\n"); |
30 | return 2; | 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 | if(!initBus()) | 34 | if(!initBus()) |
34 | { | 35 | { |
35 | printx(ERROR, MAIN, "Unable to start the BUS interface\n"); | 36 | printx(ERROR, MAIN, "Unable to start the BUS interface\n"); |
36 | return 3; | 37 | return 3; |
37 | } | 38 | } |
38 | pthread_create(&tBUS, NULL, processBus, NULL); | 39 | pthread_create(&tBUS, NULL, processBus, NULL); |
40 | + printx(DEBUG, MAIN, "BUS Started ID %08x ret %d\n", tBUS, ret); | ||
39 | if(!initHVC()) | 41 | if(!initHVC()) |
40 | { | 42 | { |
41 | printx(ERROR, MAIN, "Unable to start the HVC interface\n"); | 43 | printx(ERROR, MAIN, "Unable to start the HVC interface\n"); |
42 | return 4; | 44 | return 4; |
43 | } | 45 | } |
44 | pthread_create(&tHVC, NULL, processHVC, NULL); | 46 | pthread_create(&tHVC, NULL, processHVC, NULL); |
47 | + printx(DEBUG, MAIN, "HVC Started ID %08x ret %d\n", tHVC, ret); | ||
45 | pthread_join(tUI, NULL); | 48 | pthread_join(tUI, NULL); |
46 | closeLog(); | 49 | closeLog(); |
47 | return 0; | 50 | return 0; |