summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2012-10-15 15:24:15 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-10-29 17:15:37 +0100
commit9e2c64c6d4f5560e27207193efea6536a566865e (patch)
tree506ae170ee255081ebfa76ad25bc7a136b47914c /src/tools
parent644db36ab1111b88abca57d2438b72d618403dde (diff)
downloadsssd-9e2c64c6d4f5560e27207193efea6536a566865e.tar.gz
sssd-9e2c64c6d4f5560e27207193efea6536a566865e.tar.xz
sssd-9e2c64c6d4f5560e27207193efea6536a566865e.zip
Include talloc log in our debug facility
https://fedorahosted.org/sssd/ticket/1495
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/sss_cache.c2
-rw-r--r--src/tools/sss_debuglevel.c2
-rw-r--r--src/tools/sss_groupadd.c2
-rw-r--r--src/tools/sss_groupdel.c2
-rw-r--r--src/tools/sss_groupmod.c2
-rw-r--r--src/tools/sss_groupshow.c2
-rw-r--r--src/tools/sss_seed.c2
-rw-r--r--src/tools/sss_useradd.c2
-rw-r--r--src/tools/sss_userdel.c2
-rw-r--r--src/tools/sss_usermod.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c
index 73d99651b..9b91f982b 100644
--- a/src/tools/sss_cache.c
+++ b/src/tools/sss_cache.c
@@ -414,7 +414,7 @@ errno_t init_context(int argc, const char *argv[], struct cache_tool_ctx **tctx)
ret, fini);
}
- debug_level = debug_convert_old_level(debug);
+ DEBUG_INIT(debug);
debug_prg_name = argv[0];
CHECK_ROOT(ret, debug_prg_name);
diff --git a/src/tools/sss_debuglevel.c b/src/tools/sss_debuglevel.c
index 72701386a..e955ec381 100644
--- a/src/tools/sss_debuglevel.c
+++ b/src/tools/sss_debuglevel.c
@@ -88,7 +88,7 @@ int main(int argc, const char **argv)
goto fini;
}
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
/* get debug level */
debug_as_string = poptGetArg(pc);
diff --git a/src/tools/sss_groupadd.c b/src/tools/sss_groupadd.c
index 2a01f392c..5667e9aa2 100644
--- a/src/tools/sss_groupadd.c
+++ b/src/tools/sss_groupadd.c
@@ -67,7 +67,7 @@ int main(int argc, const char **argv)
BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
/* groupname is an argument, not option */
pc_groupname = poptGetArg(pc);
diff --git a/src/tools/sss_groupdel.c b/src/tools/sss_groupdel.c
index 70030cab4..57c3e7004 100644
--- a/src/tools/sss_groupdel.c
+++ b/src/tools/sss_groupdel.c
@@ -61,7 +61,7 @@ int main(int argc, const char **argv)
BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
pc_groupname = poptGetArg(pc);
if (pc_groupname == NULL) {
diff --git a/src/tools/sss_groupmod.c b/src/tools/sss_groupmod.c
index c210bad75..1d80c5921 100644
--- a/src/tools/sss_groupmod.c
+++ b/src/tools/sss_groupmod.c
@@ -100,7 +100,7 @@ int main(int argc, const char **argv)
BAD_POPT_PARAMS(pc, _("Specify group to modify\n"), ret, fini);
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
CHECK_ROOT(ret, debug_prg_name);
diff --git a/src/tools/sss_groupshow.c b/src/tools/sss_groupshow.c
index 2ba495c19..7ba1db139 100644
--- a/src/tools/sss_groupshow.c
+++ b/src/tools/sss_groupshow.c
@@ -675,7 +675,7 @@ int main(int argc, const char **argv)
}
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
if (ret != -1) {
BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
diff --git a/src/tools/sss_seed.c b/src/tools/sss_seed.c
index 18d0b9d08..cd1b26386 100644
--- a/src/tools/sss_seed.c
+++ b/src/tools/sss_seed.c
@@ -521,7 +521,7 @@ static int seed_init(TALLOC_CTX *mem_ctx,
BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
CHECK_ROOT(ret, argv[0]);
diff --git a/src/tools/sss_useradd.c b/src/tools/sss_useradd.c
index 1bf174c51..ef594aed4 100644
--- a/src/tools/sss_useradd.c
+++ b/src/tools/sss_useradd.c
@@ -98,7 +98,7 @@ int main(int argc, const char **argv)
}
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
if (ret != -1) {
BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
diff --git a/src/tools/sss_userdel.c b/src/tools/sss_userdel.c
index 0d1c63e4c..5d250f6c9 100644
--- a/src/tools/sss_userdel.c
+++ b/src/tools/sss_userdel.c
@@ -173,7 +173,7 @@ int main(int argc, const char **argv)
}
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
if (ret != -1) {
BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
diff --git a/src/tools/sss_usermod.c b/src/tools/sss_usermod.c
index a45005caa..f6730368a 100644
--- a/src/tools/sss_usermod.c
+++ b/src/tools/sss_usermod.c
@@ -111,7 +111,7 @@ int main(int argc, const char **argv)
BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
}
- debug_level = debug_convert_old_level(pc_debug);
+ DEBUG_INIT(pc_debug);
/* username is an argument without --option */
pc_username = poptGetArg(pc);