Changeset 30a7f06 in rtems-tools


Ignore:
Timestamp:
Sep 10, 2014, 1:14:06 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
67369b1
Parents:
b7ad4a2
Message:

Make the verbose take the level and return the level if valid.

This makes the verbose a single and removes the need to have the
logic of the test in the code.

Location:
linkers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • linkers/rld.cpp

    rb7ad4a2 r30a7f06  
    195195
    196196  int
    197   verbose ()
    198   {
    199     return verbose_level;
     197  verbose (int level)
     198  {
     199    return verbose_level && (verbose_level >= level) ? verbose_level : 0;
    200200  }
    201201
  • linkers/rld.h

    rb7ad4a2 r30a7f06  
    188188   * level.
    189189   */
    190   int verbose ();
     190  int verbose (int level = 0);
    191191
    192192  /**
Note: See TracChangeset for help on using the changeset viewer.