From: Simon Ruderich Date: Mon, 10 Jun 2013 20:25:31 +0000 (+0200) Subject: Add another debug() print to init_from_environment(). X-Git-Tag: 0.1~72 X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=commitdiff_plain;h=9af3c2c72729536f5822c78572510b251895eb70 Add another debug() print to init_from_environment(). --- diff --git a/src/trackfds.h b/src/trackfds.h index 1eede80..f84e20d 100644 --- a/src/trackfds.h +++ b/src/trackfds.h @@ -95,6 +95,9 @@ static void init_from_environment(void) { errno = saved_errno; return; } +#ifdef DEBUG + debug(" getenv(\"%s\"): \"%s\"\n", ENV_NAME_FDS, env); +#endif /* Environment is read-only. */ char env_copy[strlen(env) + 1]; strcpy(env_copy, env); @@ -217,7 +220,7 @@ static void update_environment(void) { update_environment_buffer(env); #if 0 - debug(" setenv('%s', '%s', 1)\n", ENV_NAME_FDS, env); + debug(" setenv(\"%s\", \"%s\", 1)\n", ENV_NAME_FDS, env); #endif setenv(ENV_NAME_FDS, env, 1 /* overwrite */);