summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Nelson2015-05-15 17:05:55 -0500
committerSam Nelson2015-05-15 17:05:55 -0500
commitaacc440d28007380532a72976eb7fd405e519226 (patch)
treec0772ef196b25b80da950a2048c5f2ab02f6dbdd
parent59748e8750b6c8c2c4b9efd81f2a439fd275fdab (diff)
downloaduio-module-drv-aacc440d28007380532a72976eb7fd405e519226.tar.gz
uio-module-drv-aacc440d28007380532a72976eb7fd405e519226.tar.xz
uio-module-drv-aacc440d28007380532a72976eb7fd405e519226.zip
test: Add fflush to send prints immedietly
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
-rwxr-xr-xtest/uio_cic2_int_multithread_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/uio_cic2_int_multithread_test.c b/test/uio_cic2_int_multithread_test.c
index e176109..ff92e13 100755
--- a/test/uio_cic2_int_multithread_test.c
+++ b/test/uio_cic2_int_multithread_test.c
@@ -268,12 +268,12 @@ void main(int32_t argc, int8_t **argv)
268 sleep(print_stats_delay); 268 sleep(print_stats_delay);
269 } 269 }
270 interrupts_received = 0; 270 interrupts_received = 0;
271 printf("Interrupt received count per interrupt source:\n"); 271 printf("Interrupt received count per interrupt source:\n");fflush(stdout);
272 for(i=0;i<MAX_NUM_THREADS; i++) { 272 for(i=0;i<MAX_NUM_THREADS; i++) {
273 interrupts_received += thread_arg[i].interrupt_occurred_flag; 273 interrupts_received += thread_arg[i].interrupt_occurred_flag;
274 printf("%d ",thread_arg[i].interrupt_occurred_flag); 274 printf("%d ",thread_arg[i].interrupt_occurred_flag);
275 } 275 }
276 printf("\nTotal Interrupts_received : %d\n", interrupts_received); 276 printf("\nTotal Interrupts_received : %d\n", interrupts_received);fflush(stdout);
277 277
278 } while(1); 278 } while(1);
279end_close: 279end_close: