Lines Matching +defs:debug +defs:o
638 struct option *o, *otmp;
646 TAILQ_FOREACH_SAFE(o, &pg->pg_options, o_next, otmp)
647 option_delete(&pg->pg_options, o);
1385 struct option *o, *tmp;
1396 TAILQ_FOREACH_SAFE(o, &lun->l_options, o_next, tmp)
1397 option_delete(&lun->l_options, o);
1486 struct option *o;
1488 o = option_find(options, name);
1489 if (o != NULL) {
1494 o = calloc(1, sizeof(*o));
1495 if (o == NULL)
1497 o->o_name = checked_strdup(name);
1498 o->o_value = checked_strdup(value);
1499 TAILQ_INSERT_TAIL(options, o, o_next);
1501 return (o);
1505 option_delete(struct options *options, struct option *o)
1508 TAILQ_REMOVE(options, o, o_next);
1509 free(o->o_name);
1510 free(o->o_value);
1511 free(o);
1517 struct option *o;
1519 TAILQ_FOREACH(o, options, o_next) {
1520 if (strcmp(o->o_name, name) == 0)
1521 return (o);
1528 option_set(struct option *o, const char *value)
1531 free(o->o_value);
1532 o->o_value = checked_strdup(value);
1604 struct option *o;
1629 TAILQ_FOREACH(o, &lun->l_options, o_next)
1631 o->o_name, o->o_value);
1912 log_debugx("changing debug level to %d", newconf->conf_debug);
2689 int debug = 0, ch, error;
2699 debug++;
2726 log_init(debug);
2754 if (debug > 0) {
2755 oldconf->conf_debug = debug;
2756 newconf->conf_debug = debug;
2797 if (debug > 0)
2798 tmpconf->conf_debug = debug;
2818 if (debug > 0)
2819 newconf->conf_debug = debug;