summaryrefslogtreecommitdiffstats
path: root/lib/cache_mngt.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2012-11-15 23:42:34 (GMT)
committerThomas Graf <tgraf@suug.ch>2012-11-15 23:42:34 (GMT)
commit23c4ef67c735813fd41f66f6722b996d1ad7314a (patch)
treeadd54d965c816cb57d8c08ef172c7a61b007b03b /lib/cache_mngt.c
parent235aa7ff17e12ca7a76dcfd77abfe143c2ce4dea (diff)
downloadlibnl-23c4ef67c735813fd41f66f6722b996d1ad7314a.zip
libnl-23c4ef67c735813fd41f66f6722b996d1ad7314a.tar.gz
libnl-23c4ef67c735813fd41f66f6722b996d1ad7314a.tar.bz2
Use NL_DBG() instead of printing warnings and errors to stderr
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'lib/cache_mngt.c')
-rw-r--r--lib/cache_mngt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/cache_mngt.c b/lib/cache_mngt.c
index 8f011fb..914ab9b 100644
--- a/lib/cache_mngt.c
+++ b/lib/cache_mngt.c
@@ -404,10 +404,10 @@ struct nl_cache *nl_cache_mngt_require(const char *name)
struct nl_cache *cache;
if (!(cache = __nl_cache_mngt_require(name)))
- fprintf(stderr, "Application BUG: Your application must "
- "call nl_cache_mngt_provide() and\nprovide a valid "
- "%s cache to be used for internal lookups.\nSee the "
- " API documentation for more details.\n", name);
+ NL_DBG(1, "Application BUG: Your application must "
+ "call nl_cache_mngt_provide() and\nprovide a valid "
+ "%s cache to be used for internal lookups.\nSee the "
+ " API documentation for more details.\n", name);
return cache;
}