Index: trunk/src/crosshair.c =================================================================== --- trunk/src/crosshair.c (revision 5665) +++ trunk/src/crosshair.c (revision 5666) @@ -1226,7 +1226,7 @@ void pcb_crosshair_restore_mode(void) { if (mode_position == 0) { - pcb_message(PCB_MSG_DEFAULT, "hace: underflow of restore mode\n"); + pcb_message(PCB_MSG_ERROR, "hace: underflow of restore mode\n"); return; } pcb_crosshair_set_mode(mode_stack[--mode_position]); @@ -1254,7 +1254,7 @@ if (Mode == PCB_MODE_ARC || Mode == PCB_MODE_RECTANGLE || Mode == PCB_MODE_VIA || Mode == PCB_MODE_POLYGON || Mode == PCB_MODE_POLYGON_HOLE || Mode == PCB_MODE_TEXT || Mode == PCB_MODE_THERMAL) { - pcb_message(PCB_MSG_DEFAULT, _("That mode is NOT allowed when drawing ratlines!\n")); + pcb_message(PCB_MSG_WARNING, _("That mode is NOT allowed when drawing ratlines!\n")); Mode = PCB_MODE_NO; } } Index: trunk/src/draw.c =================================================================== --- trunk/src/draw.c (revision 5665) +++ trunk/src/draw.c (revision 5666) @@ -544,7 +544,7 @@ EraseArc((pcb_arc_t *) ptr); break; default: - pcb_message(PCB_MSG_DEFAULT, "hace: Internal ERROR, trying to erase an unknown type\n"); + pcb_message(PCB_MSG_ERROR, "hace: Internal ERROR, trying to erase an unknown type\n"); } } Index: trunk/src/main.c =================================================================== --- trunk/src/main.c (revision 5665) +++ trunk/src/main.c (revision 5666) @@ -418,7 +418,7 @@ case DO_GUI: pcb_gui = pcb_hid_find_gui(hid_name); if (pcb_gui == NULL) { - pcb_message(PCB_MSG_DEFAULT, "Can't find the gui (%s) requested.\n", hid_name); + pcb_message(PCB_MSG_ERROR, "Can't find the gui (%s) requested.\n", hid_name); exit(1); } break; @@ -436,7 +436,7 @@ /* try anything */ if (pcb_gui == NULL) { - pcb_message(PCB_MSG_DEFAULT, "Warning: can't find any of the preferred GUIs, falling back to anything available...\n"); + pcb_message(PCB_MSG_WARNING, "Warning: can't find any of the preferred GUIs, falling back to anything available...\n"); pcb_gui = pcb_hid_find_gui(NULL); } } @@ -501,7 +501,7 @@ pcb_event(PCB_EVENT_LIBRARY_CHANGED, NULL); if (conf_core.rc.script_filename) { - pcb_message(PCB_MSG_DEFAULT, _("Executing startup script file %s\n"), conf_core.rc.script_filename); + pcb_message(PCB_MSG_INFO, _("Executing startup script file %s\n"), conf_core.rc.script_filename); pcb_hid_actionl("ExecuteFile", conf_core.rc.script_filename, NULL); } if (conf_core.rc.action_string) { Index: trunk/src/obj_common.c =================================================================== --- trunk/src/obj_common.c (revision 5665) +++ trunk/src/obj_common.c (revision 5666) @@ -62,7 +62,7 @@ case PCB_TYPE_ARC_POINT: return pcb_obj_ui_arc_point_bbox(Type, Ptr1, Ptr2, Ptr3, res); default: - pcb_message(PCB_MSG_DEFAULT, "Request for bounding box of unsupported type %d\n", Type); + pcb_message(PCB_MSG_ERROR, "Request for bounding box of unsupported type %d\n", Type); *res = *(pcb_box_t *)Ptr2; return -1; } Index: trunk/src/obj_elem.c =================================================================== --- trunk/src/obj_elem.c (revision 5665) +++ trunk/src/obj_elem.c (revision 5666) @@ -165,7 +165,7 @@ pcb_layer_t *clayer, *slayer; if (elementlist_length(&Buffer->Data->Element) != 1) { - pcb_message(PCB_MSG_DEFAULT, _("Error! Buffer doesn't contain a single element\n")); + pcb_message(PCB_MSG_ERROR, _("Error! Buffer doesn't contain a single element\n")); return (pcb_false); } /* @@ -375,11 +375,11 @@ PCB_END_LOOP; if (!hasParts) { pcb_destroy_object(PCB->Data, PCB_TYPE_ELEMENT, Element, Element, Element); - pcb_message(PCB_MSG_DEFAULT, _("There was nothing to convert!\n" "Elements must have some silk, pads or pins.\n")); + pcb_message(PCB_MSG_ERROR, _("There was nothing to convert!\n" "Elements must have some silk, pads or pins.\n")); return (pcb_false); } if (crooked) - pcb_message(PCB_MSG_DEFAULT, _("There were polygons that can't be made into pins!\n" "So they were not included in the element\n")); + pcb_message(PCB_MSG_ERROR, _("There were polygons that can't be made into pins!\n" "So they were not included in the element\n")); Element->MarkX = Buffer->X; Element->MarkY = Buffer->Y; if (PCB_SWAP_IDENT) @@ -1474,7 +1474,7 @@ return (NULL); if (PCB_ELEMNAME_IDX_VISIBLE() == PCB_ELEMNAME_IDX_REFDES) { if (conf_core.editor.unique_names && pcb_element_uniq_name(PCB->Data, ctx->chgname.new_name) != ctx->chgname.new_name) { - pcb_message(PCB_MSG_DEFAULT, _("Error: The name \"%s\" is not unique!\n"), ctx->chgname.new_name); + pcb_message(PCB_MSG_ERROR, _("Error: The name \"%s\" is not unique!\n"), ctx->chgname.new_name); return ((char *) -1); } } Index: trunk/src/obj_pinvia.c =================================================================== --- trunk/src/obj_pinvia.c (revision 5665) +++ trunk/src/obj_pinvia.c (revision 5666) @@ -94,7 +94,7 @@ PCB_VIA_LOOP(Data); { if (pcb_distance(X, Y, via->X, via->Y) <= via->DrillingHole / 2 + DrillingHole / 2) { - pcb_message(PCB_MSG_DEFAULT, _("%m+Dropping via at %$mD because it's hole would overlap with the via " + pcb_message(PCB_MSG_WARNING, _("%m+Dropping via at %$mD because it's hole would overlap with the via " "at %$mD\n"), conf_core.editor.grid_unit->allow, X, Y, via->X, via->Y); return (NULL); /* don't allow via stacking */ } @@ -114,7 +114,7 @@ Via->Mask = Mask; Via->DrillingHole = pcb_stub_vendor_drill_map(DrillingHole); if (Via->DrillingHole != DrillingHole) { - pcb_message(PCB_MSG_DEFAULT, _("%m+Mapped via drill hole to %$mS from %$mS per vendor table\n"), + pcb_message(PCB_MSG_INFO, _("%m+Mapped via drill hole to %$mS from %$mS per vendor table\n"), conf_core.editor.grid_unit->allow, Via->DrillingHole, DrillingHole); } @@ -130,7 +130,7 @@ */ if (!PCB_FLAG_TEST(PCB_FLAG_HOLE, Via) && (Via->Thickness < Via->DrillingHole + PCB_MIN_PINORVIACOPPER)) { Via->Thickness = Via->DrillingHole + PCB_MIN_PINORVIACOPPER; - pcb_message(PCB_MSG_DEFAULT, _("%m+Increased via thickness to %$mS to allow enough copper" + pcb_message(PCB_MSG_WARNING, _("%m+Increased via thickness to %$mS to allow enough copper" " at %$mD.\n"), conf_core.editor.grid_unit->allow, Via->Thickness, Via->X, Via->Y); } @@ -166,18 +166,18 @@ /* Unless we should not map drills on this element, map them! */ if (pcb_stub_vendor_is_element_mappable(Element)) { if (pin->DrillingHole < PCB_MIN_PINORVIASIZE) { - pcb_message(PCB_MSG_DEFAULT, _("%m+Did not map pin #%s (%s) drill hole because %$mS is below the minimum allowed size\n"), + pcb_message(PCB_MSG_WARNING, _("%m+Did not map pin #%s (%s) drill hole because %$mS is below the minimum allowed size\n"), conf_core.editor.grid_unit->allow, PCB_UNKNOWN(Number), PCB_UNKNOWN(Name), pin->DrillingHole); pin->DrillingHole = DrillingHole; } else if (pin->DrillingHole > PCB_MAX_PINORVIASIZE) { - pcb_message(PCB_MSG_DEFAULT, _("%m+Did not map pin #%s (%s) drill hole because %$mS is above the maximum allowed size\n"), + pcb_message(PCB_MSG_WARNING, _("%m+Did not map pin #%s (%s) drill hole because %$mS is above the maximum allowed size\n"), conf_core.editor.grid_unit->allow, PCB_UNKNOWN(Number), PCB_UNKNOWN(Name), pin->DrillingHole); pin->DrillingHole = DrillingHole; } else if (!PCB_FLAG_TEST(PCB_FLAG_HOLE, pin) && (pin->DrillingHole > pin->Thickness - PCB_MIN_PINORVIACOPPER)) { - pcb_message(PCB_MSG_DEFAULT, _("%m+Did not map pin #%s (%s) drill hole because %$mS does not leave enough copper\n"), + pcb_message(PCB_MSG_WARNING, _("%m+Did not map pin #%s (%s) drill hole because %$mS does not leave enough copper\n"), conf_core.editor.grid_unit->allow, PCB_UNKNOWN(Number), PCB_UNKNOWN(Name), pin->DrillingHole); pin->DrillingHole = DrillingHole; } @@ -187,7 +187,7 @@ } if (pin->DrillingHole != DrillingHole) { - pcb_message(PCB_MSG_DEFAULT, _("%m+Mapped pin drill hole to %$mS from %$mS per vendor table\n"), + pcb_message(PCB_MSG_INFO, _("%m+Mapped pin drill hole to %$mS from %$mS per vendor table\n"), conf_core.editor.grid_unit->allow, pin->DrillingHole, DrillingHole); } Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 5665) +++ trunk/src/plug_io.c (revision 5666) @@ -99,7 +99,7 @@ if (filename == NULL) filename = ""; } - pcb_message(PCB_MSG_DEFAULT, "IO error during %s: %s %s %s\n", what, reason, filename, comment); + pcb_message(PCB_MSG_ERROR, "IO error during %s: %s %s %s\n", what, reason, filename, comment); } } @@ -113,7 +113,7 @@ ft = fopen(Filename, "r"); if (ft == NULL) { - pcb_message(PCB_MSG_DEFAULT, "Error: can't open %s for reading (format is %s)\n", Filename, fmt); + pcb_message(PCB_MSG_ERROR, "Error: can't open %s for reading (format is %s)\n", Filename, fmt); return -1; } @@ -417,7 +417,7 @@ /* bozo: we are trying to revert back to a non-existing pcb... create one to avoid a segfault */ PCB = pcb_board_new_(pcb_false); if (PCB == NULL) { - pcb_message(PCB_MSG_DEFAULT, "FATAL: can't create a new empty pcb!"); + pcb_message(PCB_MSG_ERROR, "FATAL: can't create a new empty pcb!"); exit(1); } } @@ -663,7 +663,7 @@ /* memory might have been released before this function is called */ if (PCB && PCB->Changed && (conf_core.rc.emergency_name != NULL) && (*conf_core.rc.emergency_name != '\0')) { sprintf(filename, conf_core.rc.emergency_name, (long int)pcb_getpid()); - pcb_message(PCB_MSG_DEFAULT, _("Trying to save your layout in '%s'\n"), filename); + pcb_message(PCB_MSG_INFO, _("Trying to save your layout in '%s'\n"), filename); pcb_write_pcb_file(filename, pcb_true, DEFAULT_FMT, pcb_true); } } Index: trunk/src/search.c =================================================================== --- trunk/src/search.c (revision 5665) +++ trunk/src/search.c (revision 5666) @@ -1361,7 +1361,7 @@ } PCB_END_LOOP; - pcb_message(PCB_MSG_DEFAULT, "hace: Internal error, search for ID %d failed\n", ID); + pcb_message(PCB_MSG_ERROR, "hace: Internal error, search for ID %d failed\n", ID); return (PCB_TYPE_NONE); } Index: trunk/src/select.c =================================================================== --- trunk/src/select.c (revision 5665) +++ trunk/src/select.c (revision 5666) @@ -847,7 +847,7 @@ /* compile the regular expression */ regex = re_sei_comp(name_pattern); if (re_sei_errno(regex) != 0) { - pcb_message(PCB_MSG_DEFAULT, _("regexp error: %s\n"), re_error_str(re_sei_errno(regex))); + pcb_message(PCB_MSG_ERROR, _("regexp error: %s\n"), re_error_str(re_sei_errno(regex))); re_sei_free(regex); return (pcb_false); }