Index: trunk/src/change_act.c =================================================================== --- trunk/src/change_act.c (revision 5689) +++ trunk/src/change_act.c (revision 5690) @@ -186,7 +186,7 @@ set_selected = value ? pcb_clr_selected_join : pcb_set_selected_join; } else { - pcb_message(PCB_MSG_DEFAULT, _("%s(): Flag \"%s\" is not valid\n"), cmd_name, flag_name); + pcb_message(PCB_MSG_ERROR, _("%s(): Flag \"%s\" is not valid\n"), cmd_name, flag_name); return; } @@ -198,7 +198,7 @@ if ((type = pcb_search_screen(pcb_crosshair.X, pcb_crosshair.Y, PCB_CHANGESIZE_TYPES, &ptr1, &ptr2, &ptr3)) != PCB_TYPE_NONE) if (PCB_FLAG_TEST(PCB_FLAG_LOCK, (pcb_pin_t *) ptr2)) - pcb_message(PCB_MSG_DEFAULT, _("Sorry, the object is locked\n")); + pcb_message(PCB_MSG_WARNING, _("Sorry, the object is locked\n")); if (set_object(type, ptr1, ptr2, ptr3)) pcb_board_set_changed_flag(pcb_true); break; @@ -410,7 +410,7 @@ { if (type != PCB_TYPE_NONE) if (PCB_FLAG_TEST(PCB_FLAG_LOCK, (pcb_pin_t *) ptr2)) - pcb_message(PCB_MSG_DEFAULT, _("Sorry, the object is locked\n")); + pcb_message(PCB_MSG_WARNING, _("Sorry, the object is locked\n")); if (tostyle) { if (pcb_chg_obj_1st_size(type, ptr1, ptr2, ptr3, value, absolute)) pcb_board_set_changed_flag(pcb_true); @@ -1401,7 +1401,7 @@ { if (type != PCB_TYPE_NONE) { if (PCB_FLAG_TEST(PCB_FLAG_LOCK, (pcb_pin_t *) ptr2)) - pcb_message(PCB_MSG_DEFAULT, _("Sorry, the object is locked\n")); + pcb_message(PCB_MSG_WARNING, _("Sorry, the object is locked\n")); else { if (pcb_chg_obj_angle(type, ptr1, ptr2, ptr3, which, value, absolute)) pcb_board_set_changed_flag(pcb_true); @@ -1464,7 +1464,7 @@ { if (type != PCB_TYPE_NONE) { if (PCB_FLAG_TEST(PCB_FLAG_LOCK, (pcb_pin_t *) ptr2)) - pcb_message(PCB_MSG_DEFAULT, _("Sorry, the object is locked\n")); + pcb_message(PCB_MSG_WARNING, _("Sorry, the object is locked\n")); else { if (pcb_chg_obj_radius(type, ptr1, ptr2, ptr3, which, value, absolute)) pcb_board_set_changed_flag(pcb_true); Index: trunk/src/conf_act.c =================================================================== --- trunk/src/conf_act.c (revision 5689) +++ trunk/src/conf_act.c (revision 5690) @@ -60,13 +60,13 @@ int res; if (argc < 3) { - pcb_message(PCB_MSG_DEFAULT, "conf(set) needs at least two arguments"); + pcb_message(PCB_MSG_ERROR, "conf(set) needs at least two arguments"); return 1; } if (argc > 3) { role = conf_role_parse(argv[3]); if (role == CFR_invalid) { - pcb_message(PCB_MSG_DEFAULT, "Invalid role: '%s'", argv[3]); + pcb_message(PCB_MSG_ERROR, "Invalid role: '%s'", argv[3]); return 1; } } @@ -73,7 +73,7 @@ if (argc > 4) { pol = conf_policy_parse(argv[4]); if (pol == POL_invalid) { - pcb_message(PCB_MSG_DEFAULT, "Invalid policy: '%s'", argv[4]); + pcb_message(PCB_MSG_ERROR, "Invalid policy: '%s'", argv[4]); return 1; } } @@ -83,7 +83,7 @@ if (role == CFR_invalid) { conf_native_t *n = conf_get_field(argv[1]); if (n == NULL) { - pcb_message(PCB_MSG_DEFAULT, "Invalid conf field '%s': no such path\n", argv[1]); + pcb_message(PCB_MSG_ERROR, "Invalid conf field '%s': no such path\n", argv[1]); return 1; } res = conf_set_native(n, 0, val); @@ -91,7 +91,7 @@ else res = conf_set(role, path, -1, val, pol); if (res != 0) { - pcb_message(PCB_MSG_DEFAULT, "conf(set) failed.\n"); + pcb_message(PCB_MSG_ERROR, "conf(set) failed.\n"); return 1; } } @@ -131,21 +131,21 @@ int res; if (n == NULL) { - pcb_message(PCB_MSG_DEFAULT, "Invalid conf field '%s': no such path\n", argv[1]); + pcb_message(PCB_MSG_ERROR, "Invalid conf field '%s': no such path\n", argv[1]); return 1; } if (n->type != CFN_BOOLEAN) { - pcb_message(PCB_MSG_DEFAULT, "Can not toggle '%s': not a boolean\n", argv[1]); + pcb_message(PCB_MSG_ERROR, "Can not toggle '%s': not a boolean\n", argv[1]); return 1; } if (n->used != 1) { - pcb_message(PCB_MSG_DEFAULT, "Can not toggle '%s': array size should be 1, not %d\n", argv[1], n->used); + pcb_message(PCB_MSG_ERROR, "Can not toggle '%s': array size should be 1, not %d\n", argv[1], n->used); return 1; } if (argc > 2) { role = conf_role_parse(argv[2]); if (role == CFR_invalid) { - pcb_message(PCB_MSG_DEFAULT, "Invalid role: '%s'", argv[2]); + pcb_message(PCB_MSG_ERROR, "Invalid role: '%s'", argv[2]); return 1; } } @@ -159,7 +159,7 @@ res = conf_set(role, argv[1], -1, new_value, POL_OVERWRITE); if (res != 0) { - pcb_message(PCB_MSG_DEFAULT, "Can not toggle '%s': failed to set new value\n", argv[1]); + pcb_message(PCB_MSG_ERROR, "Can not toggle '%s': failed to set new value\n", argv[1]); return 1; } conf_update(argv[1]); @@ -169,7 +169,7 @@ conf_role_t role; role = conf_role_parse(argv[1]); if (role == CFR_invalid) { - pcb_message(PCB_MSG_DEFAULT, "Invalid role: '%s'", argv[1]); + pcb_message(PCB_MSG_ERROR, "Invalid role: '%s'", argv[1]); return 1; } conf_reset(role, ""); @@ -177,7 +177,7 @@ } else { - pcb_message(PCB_MSG_DEFAULT, "Invalid conf command '%s'\n", argv[0]); + pcb_message(PCB_MSG_ERROR, "Invalid conf command '%s'\n", argv[0]); return 1; } return 0; @@ -225,7 +225,7 @@ if (strcmp(m->name, argv[0]) == 0) return conf_core.editor.mode == m->mode; } - pcb_message(PCB_MSG_DEFAULT, "Unknown mode in ChkMode(): %s\n", argv[1]); + pcb_message(PCB_MSG_ERROR, "Unknown mode in ChkMode(): %s\n", argv[1]); abort(); return -1; } Index: trunk/src/event.c =================================================================== --- trunk/src/event.c (revision 5689) +++ trunk/src/event.c (revision 5690) @@ -125,7 +125,7 @@ va_start(ap, fmt); for (a++; *fmt != '\0'; fmt++, a++, argc++) { if (argc >= EVENT_MAX_ARG) { - pcb_message(PCB_MSG_DEFAULT, "pcb_event(): too many arguments\n"); + pcb_message(PCB_MSG_ERROR, "pcb_event(): too many arguments\n"); break; } switch (*fmt) { @@ -156,7 +156,7 @@ default: a->type = PCB_EVARG_INT; a->d.i = 0; - pcb_message(PCB_MSG_DEFAULT, "pcb_event(): invalid argument type '%c'\n", *fmt); + pcb_message(PCB_MSG_ERROR, "pcb_event(): invalid argument type '%c'\n", *fmt); break; } } Index: trunk/src/find_drc.c =================================================================== --- trunk/src/find_drc.c (revision 5689) +++ trunk/src/find_drc.c (revision 5690) @@ -192,8 +192,8 @@ } if (pcb_gui->drc_gui == NULL || pcb_gui->drc_gui->log_drc_violations) { - pcb_message(PCB_MSG_DEFAULT, _("WARNING! Design Rule error - %s\n"), violation->title); - pcb_message(PCB_MSG_DEFAULT, _("%m+near location %$mD\n"), conf_core.editor.grid_unit->allow, violation->x, violation->y); + pcb_message(PCB_MSG_WARNING, _("WARNING! Design Rule error - %s\n"), violation->title); + pcb_message(PCB_MSG_WARNING, _("%m+near location %$mD\n"), conf_core.editor.grid_unit->allow, violation->x, violation->y); } } @@ -284,7 +284,7 @@ } break; default: - pcb_message(PCB_MSG_DEFAULT, "hace: Bad Plow object in callback\n"); + pcb_message(PCB_MSG_ERROR, "hace: Bad Plow object in callback\n"); } return PCB_R_DIR_NOT_FOUND; @@ -694,7 +694,7 @@ pcb_gui->invalidate_all(); if (nopastecnt > 0) { - pcb_message(PCB_MSG_DEFAULT, _("Warning: %d pad%s the nopaste flag set.\n"), nopastecnt, nopastecnt > 1 ? "s have" : " has"); + pcb_message(PCB_MSG_WARNING, _("Warning: %d pad%s the nopaste flag set.\n"), nopastecnt, nopastecnt > 1 ? "s have" : " has"); } return IsBad ? -drcerr_count : drcerr_count; } Index: trunk/src/gui_act.c =================================================================== --- trunk/src/gui_act.c (revision 5689) +++ trunk/src/gui_act.c (revision 5690) @@ -911,8 +911,8 @@ PCB_ACT_FAIL(Message); for (i = 0; i < argc; i++) { - pcb_message(PCB_MSG_DEFAULT, argv[i]); - pcb_message(PCB_MSG_DEFAULT, "\n"); + pcb_message(PCB_MSG_INFO, argv[i]); + pcb_message(PCB_MSG_INFO, "\n"); } return 0; @@ -1067,7 +1067,7 @@ pcb_event(PCB_EVENT_ROUTE_STYLES_CHANGED, NULL); } else - pcb_message(PCB_MSG_DEFAULT, "Error: invalid route style name or index\n"); + pcb_message(PCB_MSG_ERROR, "Error: invalid route style name or index\n"); } return 0; } @@ -1084,7 +1084,7 @@ static int pcb_act_CreateMenu(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y) { if (pcb_gui == NULL) { - pcb_message(PCB_MSG_DEFAULT, "Error: can't create menu, there's no GUI hid loaded\n"); + pcb_message(PCB_MSG_ERROR, "Error: can't create menu, there's no GUI hid loaded\n"); return 1; } @@ -1225,7 +1225,7 @@ int chg; if (ng == NULL) { - pcb_message(PCB_MSG_DEFAULT, "No such HID."); + pcb_message(PCB_MSG_ERROR, "No such HID."); return 1; } Index: trunk/src/hid_actions.c =================================================================== --- trunk/src/hid_actions.c (revision 5689) +++ trunk/src/hid_actions.c (revision 5690) @@ -38,11 +38,11 @@ for (i = 0; i < n; i++) { if (check_action_name(a[i].name)) { - pcb_message(PCB_MSG_DEFAULT, _("ERROR! Invalid action name, " "action \"%s\" not registered.\n"), a[i].name); + pcb_message(PCB_MSG_ERROR, _("ERROR! Invalid action name, " "action \"%s\" not registered.\n"), a[i].name); continue; } if (htsp_get(all_actions, a[i].name) != NULL) { - pcb_message(PCB_MSG_DEFAULT, _("ERROR! Invalid action name, " "action \"%s\" is already registered.\n"), a[i].name); + pcb_message(PCB_MSG_ERROR, _("ERROR! Invalid action name, " "action \"%s\" is already registered.\n"), a[i].name); continue; } ca = malloc(sizeof(hid_cookie_action_t)); @@ -116,7 +116,7 @@ if (ca) return ca->action; - pcb_message(PCB_MSG_DEFAULT, "unknown action `%s'\n", name); + pcb_message(PCB_MSG_ERROR, "unknown action `%s'\n", name); return 0; } @@ -236,10 +236,10 @@ a = pcb_hid_find_action(name); if (!a) { int i; - pcb_message(PCB_MSG_DEFAULT, "no action %s(", name); + pcb_message(PCB_MSG_ERROR, "no action %s(", name); for (i = 0; i < argc; i++) - pcb_message(PCB_MSG_DEFAULT, "%s%s", i ? ", " : "", argv[i]); - pcb_message(PCB_MSG_DEFAULT, ")\n"); + pcb_message(PCB_MSG_ERROR, "%s%s", i ? ", " : "", argv[i]); + pcb_message(PCB_MSG_ERROR, ")\n"); return 1; } return pcb_hid_actionv_(a, argc, argv); @@ -303,8 +303,8 @@ sp++; } else if (require_parens) { - pcb_message(PCB_MSG_DEFAULT, _("Syntax error: %s\n"), rstr); - pcb_message(PCB_MSG_DEFAULT, _(" expected: Action(arg1, arg2)")); + pcb_message(PCB_MSG_ERROR, _("Syntax error: %s\n"), rstr); + pcb_message(PCB_MSG_ERROR, _(" expected: Action(arg1, arg2)")); retcode = 1; goto cleanup; } Index: trunk/src/netlist_act.c =================================================================== --- trunk/src/netlist_act.c (revision 5689) +++ trunk/src/netlist_act.c (revision 5690) @@ -217,7 +217,7 @@ if (!PCB) return 1; if (argc == 0) { - pcb_message(PCB_MSG_DEFAULT, pcb_acts_Netlist); + pcb_message(PCB_MSG_ERROR, pcb_acts_Netlist); return 1; } if (pcb_strcasecmp(argv[0], "find") == 0) @@ -266,7 +266,7 @@ return 0; } else { - pcb_message(PCB_MSG_DEFAULT, pcb_acts_Netlist); + pcb_message(PCB_MSG_ERROR, pcb_acts_Netlist); return 1; } @@ -280,7 +280,7 @@ if (use_re) { regex = re_sei_comp(argv[1]); 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 (1); } Index: trunk/src/rats.c =================================================================== --- trunk/src/rats.c (revision 5689) +++ trunk/src/rats.c (revision 5690) @@ -94,7 +94,7 @@ } else { ElementName[j] = '\0'; - pcb_message(PCB_MSG_DEFAULT, _("Bad net-list format encountered near: \"%s\"\n"), ElementName); + pcb_message(PCB_MSG_ERROR, _("Bad net-list format encountered near: \"%s\"\n"), ElementName); return (pcb_true); } } @@ -160,7 +160,7 @@ return (pcb_false); for (j = 0; PinNum[j] != '\0'; j++); if (j == 0) { - pcb_message(PCB_MSG_DEFAULT, _("Error! Netlist file is missing pin!\n" "white space after \"%s-\"\n"), ElementName); + pcb_message(PCB_MSG_ERROR, _("Error! Netlist file is missing pin!\n" "white space after \"%s-\"\n"), ElementName); badnet = pcb_true; } else { @@ -169,11 +169,11 @@ if (Same) return (pcb_false); if (PinNum[j - 1] < '0' || PinNum[j - 1] > '9') { - pcb_message(PCB_MSG_DEFAULT, "WARNING! Pin number ending with '%c'" + pcb_message(PCB_MSG_WARNING, "WARNING! Pin number ending with '%c'" " encountered in netlist file\n" "Probably a bad netlist file format\n", PinNum[j - 1]); } } - pcb_message(PCB_MSG_DEFAULT, _("Can't find %s pin %s called for in netlist.\n"), ElementName, PinNum); + pcb_message(PCB_MSG_WARNING, _("Can't find %s pin %s called for in netlist.\n"), ElementName, PinNum); return (pcb_false); } @@ -230,7 +230,7 @@ { if (pcb_rat_seek_pad(entry, &LastPoint, pcb_false)) { if (PCB_FLAG_TEST(PCB_FLAG_DRC, (pcb_pin_t *) LastPoint.ptr2)) - pcb_message(PCB_MSG_DEFAULT, _ + pcb_message(PCB_MSG_ERROR, _ ("Error! Element %s pin %s appears multiple times in the netlist file.\n"), PCB_ELEM_NAME_REFDES((pcb_element_t *) LastPoint.ptr1), (LastPoint.type == @@ -326,7 +326,7 @@ if ((PCB_FLAG_TEST(PCB_FLAG_DRC, pin)) && (!(e->Flags.f & PCB_FLAG_NONETLIST))) { warn = pcb_true; if (!pin->Spare) { - pcb_message(PCB_MSG_DEFAULT, _("Warning! Net \"%s\" is shorted to %s pin %s\n"), + pcb_message(PCB_MSG_WARNING, _("Warning! Net \"%s\" is shorted to %s pin %s\n"), &theNet->Name[2], PCB_UNKNOWN(PCB_ELEM_NAME_REFDES(element)), PCB_UNKNOWN(pin->Number)); pcb_stub_rat_found_short(pin, NULL, &theNet->Name[2]); continue; @@ -342,7 +342,7 @@ if (newone) { menu = vtptr_alloc_append(&generic, 1); *menu = pin->Spare; - pcb_message(PCB_MSG_DEFAULT, _("Warning! Net \"%s\" is shorted to net \"%s\"\n"), + pcb_message(PCB_MSG_WARNING, _("Warning! Net \"%s\" is shorted to net \"%s\"\n"), &theNet->Name[2], &((pcb_lib_menu_t *) (pin->Spare))->Name[2]); pcb_stub_rat_found_short(pin, NULL, &theNet->Name[2]); } @@ -356,7 +356,7 @@ if ((PCB_FLAG_TEST(PCB_FLAG_DRC, pad)) && (!(e->Flags.f & PCB_FLAG_NONETLIST)) && (!(e->Name->Flags.f & PCB_FLAG_NONETLIST))) { warn = pcb_true; if (!pad->Spare) { - pcb_message(PCB_MSG_DEFAULT, _("Warning! Net \"%s\" is shorted to %s pad %s\n"), + pcb_message(PCB_MSG_WARNING, _("Warning! Net \"%s\" is shorted to %s pad %s\n"), &theNet->Name[2], PCB_UNKNOWN(PCB_ELEM_NAME_REFDES(element)), PCB_UNKNOWN(pad->Number)); pcb_stub_rat_found_short(NULL, pad, &theNet->Name[2]); continue; @@ -372,7 +372,7 @@ if (newone) { menu = vtptr_alloc_append(&generic, 1); *menu = pad->Spare; - pcb_message(PCB_MSG_DEFAULT, _("Warning! Net \"%s\" is shorted to net \"%s\"\n"), + pcb_message(PCB_MSG_WARNING, _("Warning! Net \"%s\" is shorted to net \"%s\"\n"), &theNet->Name[2], &((pcb_lib_menu_t *) (pad->Spare))->Name[2]); pcb_stub_rat_found_short(NULL, pad, &theNet->Name[2]); } @@ -656,7 +656,7 @@ */ Wantlist = pcb_rat_proc_netlist(&(PCB->NetlistLib[PCB_NETLIST_EDITED])); if (!Wantlist) { - pcb_message(PCB_MSG_DEFAULT, _("Can't add rat lines because no netlist is loaded.\n")); + pcb_message(PCB_MSG_WARNING, _("Can't add rat lines because no netlist is loaded.\n")); return (pcb_false); } changed = pcb_false; @@ -711,15 +711,15 @@ if (changed) { pcb_undo_inc_serial(); if (ratlist_length(&PCB->Data->Rat) > 0) { - pcb_message(PCB_MSG_DEFAULT, "%d rat line%s remaining\n", ratlist_length(&PCB->Data->Rat), ratlist_length(&PCB->Data->Rat) > 1 ? "s" : ""); + pcb_message(PCB_MSG_WARNING, "%d rat line%s remaining\n", ratlist_length(&PCB->Data->Rat), ratlist_length(&PCB->Data->Rat) > 1 ? "s" : ""); } return (pcb_true); } if (!SelectedOnly && !Warned) { if (!ratlist_length(&PCB->Data->Rat) && !badnet) - pcb_message(PCB_MSG_DEFAULT, _("Congratulations!!\n" "The layout is complete and has no shorted nets.\n")); + pcb_message(PCB_MSG_WARNING, _("Congratulations!!\n" "The layout is complete and has no shorted nets.\n")); else - pcb_message(PCB_MSG_DEFAULT, _("Nothing more to add, but there are\n" + pcb_message(PCB_MSG_WARNING, _("Nothing more to add, but there are\n" "either rat-lines in the layout, disabled nets\n" "in the net-list, or missing components\n")); } return (pcb_false); @@ -742,7 +742,7 @@ */ Wantlist = pcb_rat_proc_netlist(&(PCB->NetlistLib[PCB_NETLIST_EDITED])); if (!Wantlist) { - pcb_message(PCB_MSG_DEFAULT, _("Can't add rat lines because no netlist is loaded.\n")); + pcb_message(PCB_MSG_WARNING, _("Can't add rat lines because no netlist is loaded.\n")); return result; } /* initialize finding engine */ @@ -822,11 +822,11 @@ found = pcb_search_obj_by_location(PCB_TYPE_PAD | PCB_TYPE_PIN, &ptr1, &ptr2, &ptr3, pcb_crosshair.AttachedLine.Point1.X, pcb_crosshair.AttachedLine.Point1.Y, 5); if (found == PCB_TYPE_NONE) { - pcb_message(PCB_MSG_DEFAULT, _("No pad/pin under rat line\n")); + pcb_message(PCB_MSG_ERROR, _("No pad/pin under rat line\n")); return (NULL); } if (PCB_ELEM_NAME_REFDES((pcb_element_t *) ptr1) == NULL || *PCB_ELEM_NAME_REFDES((pcb_element_t *) ptr1) == 0) { - pcb_message(PCB_MSG_DEFAULT, _("You must name the starting element first\n")); + pcb_message(PCB_MSG_ERROR, _("You must name the starting element first\n")); return (NULL); } @@ -837,11 +837,11 @@ found = pcb_search_obj_by_location(PCB_TYPE_PAD | PCB_TYPE_PIN, &ptr1, &ptr2, &ptr3, pcb_crosshair.AttachedLine.Point2.X, pcb_crosshair.AttachedLine.Point2.Y, 5); if (found == PCB_TYPE_NONE) { - pcb_message(PCB_MSG_DEFAULT, _("No pad/pin under rat line\n")); + pcb_message(PCB_MSG_ERROR, _("No pad/pin under rat line\n")); return (NULL); } if (PCB_ELEM_NAME_REFDES((pcb_element_t *) ptr1) == NULL || *PCB_ELEM_NAME_REFDES((pcb_element_t *) ptr1) == 0) { - pcb_message(PCB_MSG_DEFAULT, _("You must name the ending element first\n")); + pcb_message(PCB_MSG_ERROR, _("You must name the ending element first\n")); return (NULL); } group2 = (PCB_FLAG_TEST(PCB_FLAG_ONSOLDER, (pcb_pad_t *) ptr2) ? @@ -851,7 +851,7 @@ menu = pcb_netnode_to_netname(name1); if (menu) { if (pcb_netnode_to_netname(name2)) { - pcb_message(PCB_MSG_DEFAULT, _("Both connections already in netlist - cannot merge nets\n")); + pcb_message(PCB_MSG_ERROR, _("Both connections already in netlist - cannot merge nets\n")); return (NULL); } entry = pcb_lib_entry_new(menu); Index: trunk/src/undo.c =================================================================== --- trunk/src/undo.c (revision 5689) +++ trunk/src/undo.c (revision 5690) @@ -189,7 +189,7 @@ #ifdef DEBUG_ID if (pcb_search_obj_by_id(PCB->Data, &ptr1, &ptr2, &ptr3, ID, Kind) == PCB_TYPE_NONE) - pcb_message(PCB_MSG_DEFAULT, "hace: ID (%d) and Type (%x) mismatch in AddObject...\n", ID, Kind); + pcb_message(PCB_MSG_ERROR, "hace: ID (%d) and Type (%x) mismatch in AddObject...\n", ID, Kind); #endif /* allocate memory */ @@ -205,7 +205,7 @@ if (size > limit) { size_t l2; l2 = (size / limit + 1) * limit; - pcb_message(PCB_MSG_DEFAULT, _("Size of 'undo-list' exceeds %li kb\n"), (long) (l2 >> 10)); + pcb_message(PCB_MSG_INFO, _("Size of 'undo-list' exceeds %li kb\n"), (long) (l2 >> 10)); } } @@ -544,8 +544,8 @@ pcb_draw_obj(type, ptr1, ptr2); return (pcb_true); } - pcb_message(PCB_MSG_DEFAULT, "hace Internal error: Can't find ID %d type %08x\n", Entry->ID, Entry->Kind); - pcb_message(PCB_MSG_DEFAULT, "for UndoFlag Operation. Previous flags: %s\n", pcb_strflg_f2s(Entry->Data.Flags, 0)); + pcb_message(PCB_MSG_ERROR, "hace Internal error: Can't find ID %d type %08x\n", Entry->ID, Entry->Kind); + pcb_message(PCB_MSG_ERROR, "for UndoFlag Operation. Previous flags: %s\n", pcb_strflg_f2s(Entry->Data.Flags, 0)); return (pcb_false); } @@ -569,7 +569,7 @@ DrawElement(element); return (pcb_true); } - pcb_message(PCB_MSG_DEFAULT, "hace Internal error: UndoMirror on object type %d\n", type); + pcb_message(PCB_MSG_ERROR, "hace Internal error: UndoMirror on object type %d\n", type); return (pcb_false); } @@ -881,12 +881,12 @@ andDraw = draw; if (Serial == 0) { - pcb_message(PCB_MSG_DEFAULT, _("ERROR: Attempt to pcb_undo() with Serial == 0\n" " Please save your work and report this bug.\n")); + pcb_message(PCB_MSG_ERROR, _("ERROR: Attempt to pcb_undo() with Serial == 0\n" " Please save your work and report this bug.\n")); return 0; } if (UndoN == 0) { - pcb_message(PCB_MSG_DEFAULT, _("Nothing to undo - buffer is empty\n")); + pcb_message(PCB_MSG_INFO, _("Nothing to undo - buffer is empty\n")); return 0; } @@ -895,7 +895,7 @@ ptr = &UndoList[UndoN - 1]; if (ptr->Serial > Serial) { - pcb_message(PCB_MSG_DEFAULT, _("ERROR: Bad undo serial number %d in undo stack - expecting %d or lower\n" + pcb_message(PCB_MSG_ERROR, _("ERROR: Bad undo serial number %d in undo stack - expecting %d or lower\n" " Please save your work and report this bug.\n"), ptr->Serial, Serial); /* It is likely that the serial number got corrupted through some bad @@ -922,7 +922,7 @@ pcb_undo_unlock(); if (error_undoing) - pcb_message(PCB_MSG_DEFAULT, _("ERROR: Failed to undo some operations\n")); + pcb_message(PCB_MSG_ERROR, _("ERROR: Failed to undo some operations\n")); if (Types && andDraw) pcb_draw(); @@ -1063,7 +1063,7 @@ andDraw = draw; if (RedoN == 0) { - pcb_message(PCB_MSG_DEFAULT, _("Nothing to redo. Perhaps changes have been made since last undo\n")); + pcb_message(PCB_MSG_INFO, _("Nothing to redo. Perhaps changes have been made since last undo\n")); return 0; } @@ -1070,7 +1070,7 @@ ptr = &UndoList[UndoN]; if (ptr->Serial < Serial) { - pcb_message(PCB_MSG_DEFAULT, _("ERROR: Bad undo serial number %d in redo stack - expecting %d or higher\n" + pcb_message(PCB_MSG_ERROR, _("ERROR: Bad undo serial number %d in redo stack - expecting %d or higher\n" " Please save your work and report this bug.\n"), ptr->Serial, Serial); /* It is likely that the serial number got corrupted through some bad @@ -1100,7 +1100,7 @@ pcb_undo_unlock(); if (error_undoing) - pcb_message(PCB_MSG_DEFAULT, _("ERROR: Failed to redo some operations\n")); + pcb_message(PCB_MSG_ERROR, _("ERROR: Failed to redo some operations\n")); if (Types && andDraw) pcb_draw(); @@ -1114,7 +1114,7 @@ void pcb_undo_restore_serial(void) { if (added_undo_between_increment_and_restore) - pcb_message(PCB_MSG_DEFAULT, _("ERROR: Operations were added to the Undo stack with an incorrect serial number\n")); + pcb_message(PCB_MSG_ERROR, _("ERROR: Operations were added to the Undo stack with an incorrect serial number\n")); between_increment_and_restore = pcb_false; added_undo_between_increment_and_restore = pcb_false; Serial = SavedSerial;