Changeset 748 for soft/giet_vm/applications/mjpeg/libu.c
- Timestamp:
- Dec 16, 2015, 1:03:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/mjpeg/libu.c
r736 r748 23 23 24 24 // macro to use a shared TTY 25 #define PRINTF(...) 26 giet_tty_printf(__VA_ARGS__); \27 lock_release( &tty_lock);25 #define PRINTF(...) do { lock_acquire( &tty_lock ); \ 26 giet_tty_printf(__VA_ARGS__); \ 27 lock_release( &tty_lock ); } while(0); 28 28 29 29 ////////////////////////////////////////////////////////////// … … 53 53 54 54 PRINTF("\n[MJPEG] thread LIBU[%d] starts on P[%d,%d,%d] / trdid = %x\n", 55 index , x , y , p, (uint32_t)trdid_libu[index] ) 55 index , x , y , p, (uint32_t)trdid_libu[index] ); 56 56 57 57 uint32_t image = index; … … 85 85 #if (DEBUG_LIBU > 1) 86 86 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 87 {PRINTF("\nLIBU[%d] copy block[%d] for image %d\n",88 index, line * nblocks_w + column , image ) }87 PRINTF("\nLIBU[%d] copy block[%d] for image %d\n", 88 index, line * nblocks_w + column , image ); 89 89 #endif 90 90 } … … 100 100 #if DEBUG_LIBU 101 101 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 102 { PRINTF("\nLIBU[%d] completes image %d at cycle %d\n", index , image , time ) } 102 PRINTF("\nLIBU[%d] completes image %d at cycle %d\n", index , image , time ); 103 103 #endif 104 104 // register date of display for instrumentation
Note: See TracChangeset
for help on using the changeset viewer.