changeset 157:a7f7b52692e2

l1_trace.c: l1_trace_message(): low-hanging fruit
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 05 Jun 2016 18:06:28 +0000
parents 98c25ae2c797
children 90c4afec6608
files chipsetsw/layer1/cfile/l1_trace.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_trace.c	Sun Jun 05 16:53:19 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_trace.c	Sun Jun 05 18:06:28 2016 +0000
@@ -1025,7 +1025,7 @@
 void l1_trace_message(xSignalHeaderRec *msg)
 {
 
-  char      str[240]={0}; // Max 240 bytes with current RVT //omaps00090550
+  char      str[240]; // Max 240 bytes with current RVT
   char      str2[30];
 
 
@@ -1600,7 +1600,7 @@
             else
             // big sleep
             {
-              char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","camera","??"};
+              char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","??"};
               sprintf (str,"      big sleep: %ld %ld %d %d (cause:%s) %s\n\r",
                        ((T_TRACE_INFO *)(msg->SigP))->tab[0],
                        ((T_TRACE_INFO *)(msg->SigP))->tab[1],
@@ -4792,7 +4792,7 @@
         break;
       #endif //FIR
 
-      #if (L1_AEC == 1)
+      #if (AEC)
         case MMI_AEC_REQ:
         {
         #if (L1_NEW_AEC)
@@ -6095,7 +6095,7 @@
       tcs_program_release = ((T_TST_TEST_HW_CON*)(msg->SigP))->mcu_tcs_program_release;
 
       if (((tcs_program_release & 0xFFF0) == 0x2110) || ((tcs_program_release & 0xFFF0) == 0x2120))
-        sprintf(str, "TST_C %ld TCS_%x.%x.%x.%x_L1_%x_%x PLUS_N5x DSP:%xh DYN:%xh CHECKSUM:%xh\n\r",
+        sprintf(str, "TST_C %ld TCS_%d.%d.%d.%d_L1_%x_%x DSP:%xh DYN:%xh CHECKSUM:%xh\n\r",
                 l1s.actual_time.fn_mod42432,
                 (tcs_program_release & 0xF000) >> 12,
                 (tcs_program_release & 0x0F00) >> 8 ,
@@ -6107,7 +6107,7 @@
                 ((T_TST_TEST_HW_CON*)(msg->SigP))->dsp_patch_version,
               ((T_TST_TEST_HW_CON*)(msg->SigP))->dsp_checksum);
       else
-        sprintf(str, "TST_C %ld TCS_%x.%x.%x_L1_%x_%x PLUS_N5x DSP:%xh DYN:%xh CHECKSUM:%xh\n\r",
+        sprintf(str, "TST_C %ld TCS_%x.%x.%x_L1_%x_%x DSP:%xh DYN:%xh CHECKSUM:%xh\n\r",
                 l1s.actual_time.fn_mod42432,
                 (tcs_program_release & 0xF000) >> 12,
                 (tcs_program_release & 0x0F00) >> 8 ,
@@ -8030,7 +8030,7 @@
          else
          // big sleep
          {
-           char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","camera","??"};
+           char *array_string[]={"undefined","ligth on","uart","sim","gauging","sleep mode","DSP","BT","??"};
            sprintf (str,"      big sleep: %ld %ld %d %d (cause:%s) %s\n\r",
                     start_fn,
                     end_fn,