Changeset d212acb7 in rtems


Ignore:
Timestamp:
Feb 5, 2014, 12:53:34 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
3ef2d17
Parents:
67f2a28
git-author:
Sebastian Huber <sebastian.huber@…> (02/05/14 12:53:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/05/14 14:46:29)
Message:

bsp/leon3: Use printk() only if debug is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/smp/smp_leon3.c

    r67f2a28 rd212acb7  
    6969  found_cpus =
    7070    ((LEON3_IrqCtrl_Regs->mpstat >> LEON3_IRQMPSTATUS_CPUNR) & 0xf)  + 1;
     71
    7172  #if defined(RTEMS_DEBUG)
    7273    printk( "Found %d CPUs\n", found_cpus );
     74
     75    if ( found_cpus > configured_cpu_count ) {
     76      printk(
     77        "%d CPUs IS MORE THAN CONFIGURED -- ONLY USING %d\n",
     78        found_cpus,
     79        configured_cpu_count
     80      );
     81      found_cpus = configured_cpu_count;
     82    }
    7383  #endif
    74 
    75   if ( found_cpus > configured_cpu_count ) {
    76     printk(
    77       "%d CPUs IS MORE THAN CONFIGURED -- ONLY USING %d\n",
    78       found_cpus,
    79       configured_cpu_count
    80     );
    81     found_cpus = configured_cpu_count;
    82   }
    8384
    8485  if ( found_cpus == 1 )
Note: See TracChangeset for help on using the changeset viewer.