···2424int cdebug = PRINTD;25252626static void yyerror(const char *err);2727-static void zconfprint(const char *err, ...);2827static void zconf_error(const char *err, ...);2928static bool zconf_endtoken(const char *tokenname,3029 const char *expected_tokenname);···182183 if (current_entry->prompt)183184 current_entry->prompt->type = P_MENU;184185 else185185- zconfprint("warning: menuconfig statement without prompt");186186+ zconf_error("menuconfig statement without prompt");186187 printd(DEBUG_PARSE, "%s:%d:endconfig\n", cur_filename, cur_lineno);187188};188189···401402{402403 if (current_entry->help) {403404 free(current_entry->help);404404- zconfprint("warning: '%s' defined with more than one help text -- only the last one will be used",405405- current_entry->sym->name ?: "<choice>");405405+ zconf_error("'%s' defined with more than one help text",406406+ current_entry->sym->name ?: "<choice>");406407 }407408408409 /* Is the help text empty or all whitespace? */409410 if ($2[strspn($2, " \f\n\r\t\v")] == '\0')410410- zconfprint("warning: '%s' defined with blank help text",411411- current_entry->sym->name ?: "<choice>");411411+ zconf_error("'%s' defined with blank help text",412412+ current_entry->sym->name ?: "<choice>");412413413414 current_entry->help = $2;414415};···589590 return false;590591 }591592 return true;592592-}593593-594594-static void zconfprint(const char *err, ...)595595-{596596- va_list ap;597597-598598- fprintf(stderr, "%s:%d: ", cur_filename, cur_lineno);599599- va_start(ap, err);600600- vfprintf(stderr, err, ap);601601- va_end(ap);602602- fprintf(stderr, "\n");603593}604594605595static void zconf_error(const char *err, ...)