Changeset 0bb47ebd in rtems


Ignore:
Timestamp:
May 9, 2007, 5:40:24 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
b279999
Parents:
6e08cf7
Message:

2007-05-09 Joel Sherrill <joel.sherrill@…>

  • console/uart.c, startup/bspclean.c, startup/bspstart.c: Remove debug print methods that are redundant with prntk and replace their usage with printk.
Location:
c/src/lib/libbsp/arm/rtl22xx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/rtl22xx/ChangeLog

    r6e08cf7 r0bb47ebd  
     12007-05-09      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * console/uart.c, startup/bspclean.c, startup/bspstart.c: Remove debug
     4        print methods that are redundant with prntk and replace their usage
     5        with printk.
     6
    172007-05-01      Joel Sherrill <joel@OARcorp.com>
    28
  • c/src/lib/libbsp/arm/rtl22xx/console/uart.c

    r6e08cf7 r0bb47ebd  
    169169        }
    170170    } else {
    171         debug_printk("Unknown console minor number");
    172         printi(minor);
     171        printk("Unknown console minor number %d\n", minor);
    173172        return -1;
    174173    }
     
    198197                U0THR = (char) buf[i];
    199198            }
    200         }else {
    201         debug_printk("Unknown console minor number");
    202         printi(minor);
    203         return -1;
     199        } else {
     200          printk("Unknown console minor number %d\n", minor);
     201          return -1;
    204202    }
    205203   
     
    335333   }
    336334}
    337 
    338 debug_printk(char *dg_str)
    339 {
    340   UART0_SendStr(dg_str);
    341   UART0_SendStr("\r\n");
    342 }
    343 
    344 void printi(unsigned long value)
    345 {
    346   static char istring[9]={0,0,0,0,0,0,0,0,0};
    347   static char tmp[9]={0,0,0,0,0,0,0,0,0};
    348   char *sp;
    349   char *tp = tmp;
    350 
    351   long i;
    352   unsigned long v = value;
    353   int index;
    354 
    355   for(index=0;index<9;index++)
    356         istring[index]=tmp[index]=0x0;
    357 
    358   while (v || tp == tmp)
    359   {
    360     i = v % 16;
    361     v = v / 16;
    362     if (i < 10)
    363       *tp++ = i+'0';
    364     else
    365       *tp++ = i + 'a' - 10;
    366   }
    367 
    368   sp = istring;
    369   while (tp > tmp)
    370     *sp++ = *--tp;
    371 
    372   tp=tmp;
    373   sp=istring;
    374   debug_printk(istring);
    375 
    376 }
  • c/src/lib/libbsp/arm/rtl22xx/startup/bspclean.c

    r6e08cf7 r0bb47ebd  
    2626void bsp_cleanup(void)
    2727{
    28   static   char line[]="\nEXECUTIVE SHUTDOWN! Any key to reboot...";
    2928  /*
    3029   * AT this point, the console driver is disconnected => we must
     
    3231   * does.
    3332   */
    34   debug_printk("\n");
    35   debug_printk(line);
     33  printk("\nEXECUTIVE SHUTDOWN! Any key to reboot...");
    3634  while (uart_poll_read(0) < 0) continue;
    3735
  • c/src/lib/libbsp/arm/rtl22xx/startup/bspstart.c

    r6e08cf7 r0bb47ebd  
    6161extern void  UART0_Ini(void);
    6262extern void printi(unsigned long);
    63 extern void debug_printk(char*);
    6463/**************************************************************************/
    6564/*                                                                        */
     
    202201
    203202    #if 0
    204     debug_printk(" bsp_start_defalt");
    205     printi((int)&bsp_start_defalt);
    206    
    207     debug_printk(" _bss_free_start");
    208     printi((int)&_bss_free_start);
    209 
    210     debug_printk(" free_mem_start");
    211     printi((int)free_mem_start);
    212 
    213     debug_printk(" _sdram_base");
    214     printi((int)&_sdram_base);
    215 
    216     debug_printk(" _sdram_size");
    217     printi((int)&_sdram_size);
    218 
    219     debug_printk(" free_mem_end");
    220     printi((int)free_mem_end);
     203    printk(" bsp_start_default 0x%08x\n", (int)&bsp_start_defalt);
     204    printk(" _bss_free_start 0x%08x\n", (int)&_bss_free_start);
     205    printk(" free_mem_start 0x%08x\n", (int)free_mem_start);
     206    printk(" _sdram_base 0x%08x\n", (int)&_sdram_base);
     207    printk(" _sdram_size 0x%08x\n", (int)&_sdram_size);
     208    printk(" free_mem_end 0x%08x\n", (int)free_mem_end);
    221209    #endif
    222210
Note: See TracChangeset for help on using the changeset viewer.