Changeset 1858

Show
Ignore:
Timestamp:
06/19/10 11:31:27 (2 years ago)
Author:
arnonym
Message:

Less warnings.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libutil/Configuration.cpp

    r1763 r1858  
    238238        if(t == Setting::TypeInt) { 
    239239            ref = *s; 
    240             debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' has value %d\n", path.c_str(), ref); 
     240            debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' has value %d\n", path.c_str(), ref); 
    241241            return true; 
    242242        } else { 
    243             debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' has wrong type\n", path.c_str()); 
     243            debugWarning("path '%s' has wrong type\n", path.c_str()); 
    244244            return false; 
    245245        } 
    246246    } else { 
    247         debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' not found\n", path.c_str()); 
     247        debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' not found\n", path.c_str()); 
    248248        return false; 
    249249    } 
     
    259259        if(t == Setting::TypeInt64) { 
    260260            ref = *s; 
    261             debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' has value %"PRId64"\n", path.c_str(), ref); 
     261            debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' has value %"PRId64"\n", path.c_str(), ref); 
    262262            return true; 
    263263        } else { 
    264             debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' has wrong type\n", path.c_str()); 
     264            debugWarning("path '%s' has wrong type\n", path.c_str()); 
    265265            return false; 
    266266        } 
    267267    } else { 
    268         debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' not found\n", path.c_str()); 
     268        debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' not found\n", path.c_str()); 
    269269        return false; 
    270270    } 
     
    280280        if(t == Setting::TypeFloat) { 
    281281            ref = *s; 
    282             debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' has value %f\n", path.c_str(), ref); 
     282            debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' has value %f\n", path.c_str(), ref); 
    283283            return true; 
    284284        } else { 
    285             debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' has wrong type\n", path.c_str()); 
     285            debugWarning("path '%s' has wrong type\n", path.c_str()); 
    286286            return false; 
    287287        } 
    288288    } else { 
    289         debugOutput(DEBUG_LEVEL_VERBOSE, "path '%s' not found\n", path.c_str()); 
     289        debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "path '%s' not found\n", path.c_str()); 
    290290        return false; 
    291291    } 
     
    304304            return &s; 
    305305        } catch (...) { 
    306             debugOutput(DEBUG_LEVEL_VERBOSE, "  %s has no setting %s\n", 
     306            debugOutput(DEBUG_LEVEL_VERY_VERBOSE, "  %s has no setting %s\n", 
    307307                        c->getName().c_str(), path.c_str()); 
    308308        }