Index: util/gsch2pcb-rnd/glue.c =================================================================== --- util/gsch2pcb-rnd/glue.c (revision 5840) +++ util/gsch2pcb-rnd/glue.c (revision 5841) @@ -24,17 +24,17 @@ void pcb_chdir_error_message(const char *DirName) { - fprintf(stderr, "gsch2pcb-rnd: warning: can't cd to %s\n", DirName); + pcb_message(PCB_MSG_WARNING, "warning: can't cd to %s\n", DirName); } void pcb_opendir_error_message(const char *DirName) { - fprintf(stderr, "gsch2pcb-rnd: warning: can't opendir %s\n", DirName); + pcb_message(PCB_MSG_WARNING, "warning: can't opendir %s\n", DirName); } void pcb_popen_error_message(const char *cmd) { - fprintf(stderr, "gsch2pcb-rnd: warning: can't popen %s\n", cmd); + pcb_message(PCB_MSG_WARNING, "warning: can't popen %s\n", cmd); } void pcb_message(enum pcb_message_level level, const char *fmt, ...) Index: util/gsch2pcb-rnd/gsch2pcb.c =================================================================== --- util/gsch2pcb-rnd/gsch2pcb.c (revision 5840) +++ util/gsch2pcb-rnd/gsch2pcb.c (revision 5841) @@ -170,7 +170,7 @@ else if (!strcmp(config, "elements-dir") || !strcmp(config, "d")) { static int warned = 0; if (!warned) { - fprintf(stderr, "WARNING: using elements-dir from %s - this overrides the normal pcb-rnd configured library search paths\n", config); + pcb_message(PCB_MSG_WARNING, "WARNING: using elements-dir from %s - this overrides the normal pcb-rnd configured library search paths\n", config); warned = 1; } conf_set(CFR_CLI, "rc/library_search_paths", -1, arg, POL_PREPEND); @@ -331,7 +331,7 @@ { char *path = pcb_strdup_printf("%s/gnet-%s.scm", dir, backend); if (!pcb_file_readable(path)) - fprintf(stderr, "WARNING: %s is not found, gnetlist will probably fail; please check your pcb-rnd installation!\n", path); + pcb_message(PCB_MSG_WARNING, "WARNING: %s is not found, gnetlist will probably fail; please check your pcb-rnd installation!\n", path); free(path); } Index: util/gsch2pcb-rnd/method_pcb.c =================================================================== --- util/gsch2pcb-rnd/method_pcb.c (revision 5840) +++ util/gsch2pcb-rnd/method_pcb.c (revision 5841) @@ -29,6 +29,7 @@ #include "method.h" #include "../src/plug_footprint.h" #include "../src/paths.h" +#include "../src/error.h" #include "../src/conf.h" #include "../src/conf_core.h" #include "../src/compat_misc.h" @@ -147,12 +148,12 @@ el->omit_PKG = TRUE; } else if (!strcmp(el->description, "none")) { - fprintf(stderr, "WARNING: %s has a footprint attribute \"%s\" so won't be in the layout.\n", el->refdes, el->description); + pcb_message(PCB_MSG_WARNING, "WARNING: %s has a footprint attribute \"%s\" so won't be in the layout.\n", el->refdes, el->description); n_none += 1; el->omit_PKG = TRUE; } else if (!strcmp(el->description, "unknown")) { - fprintf(stderr, "WARNING: %s has no footprint attribute so won't be in the layout.\n", el->refdes); + pcb_message(PCB_MSG_WARNING, "WARNING: %s has no footprint attribute so won't be in the layout.\n", el->refdes); n_unknown += 1; el->omit_PKG = TRUE; } @@ -681,7 +682,7 @@ int created_pcb_file = TRUE; if (!conf_g2pr.utils.gsch2pcb_rnd.quiet_mode) - fprintf(stderr, "gsch2pcb-rnd: WARNING: Please consider switching from -m pcb to -m import because -m pcb is deprecated. (This warning can be suppressed with -q).\n"); + pcb_message(PCB_MSG_WARNING, "WARNING: Please consider switching from -m pcb to -m import because -m pcb is deprecated. (This warning can be suppressed with -q).\n"); element_search_path = pcb_fp_default_search_path();