diff options
author | John Crispin <blogic@openwrt.org> | 2013-11-22 13:13:54 +0100 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-11-22 15:04:07 +0100 |
commit | dc3988c38546c37a02030af8201048272caa7ded (patch) | |
tree | 359f49364a9ac5ca4f792076a1a6b91d4d786cd3 /procd.c | |
parent | 21d307367eb991f7494ce43087a5edb94288d08f (diff) | |
download | unitd-dc3988c38546c37a02030af8201048272caa7ded.tar unitd-dc3988c38546c37a02030af8201048272caa7ded.zip |
cleanup debug level handover
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'procd.c')
-rw-r--r-- | procd.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -40,6 +40,12 @@ static int usage(const char *prog) int main(int argc, char **argv) { int ch; + char *dbglvl = getenv("DBGLVL"); + + if (dbglvl) { + debug = atoi(dbglvl); + unsetenv("DBGLVL"); + } while ((ch = getopt(argc, argv, "d:s:h:")) != -1) { switch (ch) { |