comparison src/cs/layer1/cfile/l1_trace.c @ 283:75188c031f4e

l1_trace.c: bogus sprintf formats from TCS211 corrected
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 07 Aug 2017 06:13:44 +0000
parents b216b561dcbf
children 70e3acc5d4c8
comparison
equal deleted inserted replaced
282:50fa2f79c1d4 283:75188c031f4e
1414 } /* end case IT_DSP_ERROR */ 1414 } /* end case IT_DSP_ERROR */
1415 break; 1415 break;
1416 1416
1417 case PM_EQUAL_0: 1417 case PM_EQUAL_0:
1418 { 1418 {
1419 #if 1 /* TCS211 bogus format string */ 1419 #if 0 /* TCS211 bogus format string */
1420 sprintf (str,"> PM %ld %ld %ld %ld %ld %ld %ld %d %ld %d\n\r", 1420 sprintf (str,"> PM %ld %ld %ld %ld %ld %ld %ld %d %ld %d\n\r",
1421 #else /* LoCosto correction */ 1421 #else /* LoCosto correction */
1422 sprintf (str,"> PM %ld %ld %ld %ld %ld %ld %ld %d %ld\n\r", 1422 sprintf (str,"> PM %ld %ld %ld %ld %ld %ld %ld %d %ld\n\r",
1423 #endif 1423 #endif
1424 ((T_TRACE_INFO *)(msg->SigP))->tab[0], 1424 ((T_TRACE_INFO *)(msg->SigP))->tab[0],
2252 /* 2252 /*
2253 * Bug in TCS211, fixed in LoCosto, has to be restored for 2253 * Bug in TCS211, fixed in LoCosto, has to be restored for
2254 * binary-matching source reconstruction: TCS211 version always 2254 * binary-matching source reconstruction: TCS211 version always
2255 * printed all fields even without L1_EOTD. 2255 * printed all fields even without L1_EOTD.
2256 */ 2256 */
2257 #if 1 //(L1_EOTD) 2257 #if (L1_EOTD)
2258 sprintf(str,"NSY_I %ld %d %d %ld %ld %d %d %ld %ld %ld %ld %ld %ld %ld %ld\n\r", 2258 sprintf(str,"NSY_I %ld %d %d %ld %ld %d %d %ld %ld %ld %ld %ld %ld %ld %ld\n\r",
2259 #else 2259 #else
2260 sprintf(str,"NSY_I %ld %d %d %ld %ld %d %d\n\r", 2260 sprintf(str,"NSY_I %ld %d %d %ld %ld %d %d\n\r",
2261 #endif 2261 #endif
2262 l1s.actual_time.fn_mod42432, 2262 l1s.actual_time.fn_mod42432,