void env_set_print(int msglevel, const struct env_set *es) { if (check_debug_level(msglevel)) { const struct env_item *e; int i; if (es) { e = es->list; i = 0; while (e) { if (env_safe_to_print(e->string)) { msg(msglevel, "ENV [%d] '%s'", i, e->string); } ++i; e = e->next; } } } }
static void plugin_show_string_array (int msglevel, const char *name, const char *array[]) { int i; for (i = 0; array[i]; ++i) { if (env_safe_to_print (array[i])) msg (msglevel, "%s[%d] = '%s'", name, i, array[i]); } }