opkg_manager: tone down diagnostics in badpackage()

In case of many packages, it can take a very long time to output the
matches of badpackage() on a serial console, so only print them if the
verbosity is increased and remove unnecessary information.

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: cb9ec38623
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2016-01-04 (Mon, 04 Jan 2016)
This commit is contained in:
Stefan Seyfried
2016-01-04 20:40:55 +01:00
committed by vanhofen
parent 2e7fb0eb74
commit 969dff65f0

View File

@@ -379,7 +379,7 @@ bool COPKGManager::badpackage(std::string &s)
}
if (!st.empty()){
dprintf(DEBUG_NORMAL, "[COPKGManager] [%s - %d] found bad package => %s [filtered with %s]\n", __func__, __LINE__, s.c_str(), st.c_str());
dprintf(DEBUG_INFO, "[%s] filtered '%s' pattern(s) '%s'\n", __func__, s.c_str(), st.c_str());
return true;
}