Temporary traces added for Kilrah and MAC debuggers ...

This commit is contained in:
bsongis
2012-05-25 20:20:56 +00:00
parent 3e9bb483dc
commit 1784409df0
+2 -2
View File
@@ -104,7 +104,7 @@ bool eeprom_thread_running = true;
void *eeprom_write_function(void *)
{
printf("on entre dans eeprom_write_function\n"); fflush(stdout);
while (!sem_wait(&eeprom_write_sem)) {
while (!sem_wait(&eeprom_write_sem) || errno==EINTR) {
printf("sortie sem_wait"); fflush(stdout);
if (!eeprom_thread_running)
return NULL;
@@ -148,7 +148,7 @@ void *eeprom_write_function(void *)
Spi_complete = 1;
#endif
}
printf("sortie du thread EEPROM, pas bon avant la fin !!!"); fflush(stdout);
printf("sortie du thread EEPROM, pas bon avant la fin !!! errno=%d\n", errno); fflush(stdout);
return 0;
}