Changeset 6100
- Timestamp:
- 03/07/09 14:20:39 (3 years ago)
- Location:
- trunk
- Files:
-
- 62 modified
-
ARBDB/adGene.c (modified) (1 diff)
-
ARBDB/adRevCompl.c (modified) (1 diff)
-
ARBDB/ad_load.c (modified) (2 diffs)
-
ARBDB/ad_prot.h (modified) (1 diff)
-
ARBDB/ad_save_load.c (modified) (10 diffs)
-
ARBDB/adali.c (modified) (5 diffs)
-
ARBDB/adcomm.c (modified) (20 diffs)
-
ARBDB/adcompr.c (modified) (1 diff)
-
ARBDB/adindex.c (modified) (1 diff)
-
ARBDB/aditem.c (modified) (2 diffs)
-
ARBDB/adlang1.c (modified) (3 diffs)
-
ARBDB/adlink.c (modified) (2 diffs)
-
ARBDB/admap.c (modified) (1 diff)
-
ARBDB/admatch.c (modified) (2 diffs)
-
ARBDB/adname.c (modified) (1 diff)
-
ARBDB/adquery.c (modified) (5 diffs)
-
ARBDB/adseqcompr.c (modified) (2 diffs)
-
ARBDB/adsocket.c (modified) (6 diffs)
-
ARBDB/adstring.c (modified) (9 diffs)
-
ARBDB/adtables.c (modified) (3 diffs)
-
ARBDB/adtools.c (modified) (2 diffs)
-
ARBDB/adtree.c (modified) (3 diffs)
-
ARBDB/arbdb.c (modified) (13 diffs)
-
AWT/AWT_csp.cxx (modified) (1 diff)
-
AWT/AWT_input_mask.cxx (modified) (5 diffs)
-
AWT/AWT_nds.cxx (modified) (2 diffs)
-
AWT/AWT_query_and_functions.cxx (modified) (1 diff)
-
AWT/AWT_seq_colors.cxx (modified) (1 diff)
-
AWT/AWT_tree.cxx (modified) (1 diff)
-
AWT/AWT_www.cxx (modified) (1 diff)
-
AWT/awt_input_mask_internal.hxx (modified) (2 diffs)
-
AWTI/AWTI_import.cxx (modified) (2 diffs)
-
DIST/DI_matr.cxx (modified) (2 diffs)
-
DIST/DI_mldist.cxx (modified) (1 diff)
-
DIST/DI_protdist.cxx (modified) (2 diffs)
-
EDIT/edit.cxx (modified) (1 diff)
-
EDIT4/ED4_ProteinViewer.cxx (modified) (1 diff)
-
EDIT4/ED4_no_class.cxx (modified) (2 diffs)
-
EDIT4/ED4_protein_2nd_structure.cxx (modified) (1 diff)
-
GENOM/EXP_interface.cxx (modified) (3 diffs)
-
GENOM/GEN_interface.cxx (modified) (2 diffs)
-
GENOM/GEN_map.cxx (modified) (2 diffs)
-
MERGE/MG_gene_species.cxx (modified) (1 diff)
-
MERGE/MG_preserves.cxx (modified) (1 diff)
-
MERGE/MG_species.cxx (modified) (1 diff)
-
NTREE/AP_consensus.cxx (modified) (1 diff)
-
NTREE/AP_csp_2_gnuplot.cxx (modified) (2 diffs)
-
NTREE/NT_concatenate.cxx (modified) (1 diff)
-
PARSIMONY/AP_tree_edge.cxx (modified) (1 diff)
-
PARSIMONY/PARS_main.cxx (modified) (1 diff)
-
PERL2ARB/ARB_ext.c (modified) (1 diff)
-
PRIMER_DESIGN/primer_design.cxx (modified) (2 diffs)
-
PROBE_DESIGN/probe_design.cxx (modified) (4 diffs)
-
SECEDIT/SEC_graphic.cxx (modified) (2 diffs)
-
SECEDIT/SEC_main.cxx (modified) (2 diffs)
-
SERVERCNTRL/servercntrl.c (modified) (4 diffs)
-
SL/AW_NAME/AW_rename.cxx (modified) (2 diffs)
-
SL/FAST_ALIGNER/fast_aligner.cxx (modified) (8 diffs)
-
SL/TREE_READ/TreeRead.cxx (modified) (1 diff)
-
SL/TREE_WRITE/TreeWrite.cxx (modified) (2 diffs)
-
WINDOW/AW_nawar.cxx (modified) (1 diff)
-
WINDOW/AW_window.cxx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ARBDB/adGene.c
r6098 r6100 569 569 gb_assert(GEN_find_origin_organism(gb_pseudo, 0) == 0); 570 570 571 error = GB_export_error ("The gene-species '%s' refers to an unknown organism (%s)\n"572 "This occurs if you rename or delete the organism or change the entry\n"573 "'ARB_origin_species' and will most likely cause serious problems.",574 GBT_read_name(gb_pseudo),575 GEN_origin_organism(gb_pseudo));571 error = GB_export_errorf("The gene-species '%s' refers to an unknown organism (%s)\n" 572 "This occurs if you rename or delete the organism or change the entry\n" 573 "'ARB_origin_species' and will most likely cause serious problems.", 574 GBT_read_name(gb_pseudo), 575 GEN_origin_organism(gb_pseudo)); 576 576 577 577 return error; -
trunk/ARBDB/adRevCompl.c
r5390 r6100 105 105 default: { 106 106 *T_or_U = 0; 107 return GB_export_error ("%s not available for alignment-type", supposed_target);107 return GB_export_errorf("%s not available for alignment-type", supposed_target); 108 108 } 109 109 } -
trunk/ARBDB/ad_load.c
r6099 r6100 714 714 if (!GBCONTAINER_MAIN(gbd)->allow_corrupt_file_recovery) { 715 715 if (!recovery_reason) { recovery_reason = GB_await_error(); } 716 GB_export_error("Aborting recovery (because recovery mode is disabled)\n" 717 "Error causing recovery: '%s'\n" 718 "Part of data may be recovered using 'arb_repair yourDB.arb newName.arb'\n" 719 "(Note: Recovery doesn't work if the error occurs while loading a quick save file)", 720 recovery_reason); 721 /* GB_export_error("Your data file is corrupt.\n" */ 722 /* " This may happen if \n" */ 723 /* " - there is a hardware error (e.g a drive crash),\n" */ 724 /* " - data is corrupted by bad internet connections,\n" */ 725 /* " - data is destroyed by the program or\n" */ 726 /* " - if it isn't an arb file\n" */ 727 /* " You may recover part of your data by running\n" */ 728 /* " arb_repair old_arb_file panic.arb\n"); */ 716 GB_export_errorf("Aborting recovery (because recovery mode is disabled)\n" 717 "Error causing recovery: '%s'\n" 718 "Part of data may be recovered using 'arb_repair yourDB.arb newName.arb'\n" 719 "(Note: Recovery doesn't work if the error occurs while loading a quick save file)", 720 recovery_reason); 729 721 return -1; 730 722 } … … 1198 1190 } 1199 1191 else { 1200 GB_export_error ("FastLoad-File index conflict (%s)", map_path);1192 GB_export_errorf("FastLoad-File index conflict (%s)", map_path); 1201 1193 } 1202 1194 } -
trunk/ARBDB/ad_prot.h
r6099 r6100 37 37 char *GB_find_latest_file P_((const char *dir, const char *mask)); 38 38 void GB_raise_critical_error P_((const char *msg)); 39 GB_ERROR GB_export_error P_((const char *templat, ...)) __ATTR__FORMAT(1); 39 GB_ERROR GB_export_error P_((const char *error)); 40 GB_ERROR GB_export_errorf P_((const char *templat, ...)) __ATTR__FORMAT(1); 40 41 GB_ERROR GB_export_IO_error P_((const char *action, const char *filename)); 41 42 GB_ERROR GB_print_error P_((void)); -
trunk/ARBDB/ad_save_load.c
r6057 r6100 148 148 } 149 149 else { 150 error = GB_export_error ("WARNING: Cannot create file '%s'\n"151 " Your database is saved, but you should check write permissions\n"152 " in the destination directory",153 fullref);150 error = GB_export_errorf("WARNING: Cannot create file '%s'\n" 151 " Your database is saved, but you should check write permissions\n" 152 " in the destination directory", 153 fullref); 154 154 } 155 155 … … 171 171 } 172 172 else { 173 error = GB_export_error ("Cannot add your file '%s'\n"174 " to the list of references of '%s'\n"175 " Please ask the owner of that file not to delete it\n"176 " or save the entire database (that's recommended!)",177 fullchanges,fullref);173 error = GB_export_errorf("Cannot add your file '%s'\n" 174 " to the list of references of '%s'\n" 175 " Please ask the owner of that file not to delete it\n" 176 " or save the entire database (that's recommended!)", 177 fullchanges,fullref); 178 178 } 179 179 … … 623 623 { 624 624 long p = (long)ftell(in); 625 GB_export_error ("%s in reading GB_file (loc %li=%lX) reading %s\n",625 GB_export_errorf("%s in reading GB_file (loc %li=%lX) reading %s\n", 626 626 text,p,p,GB_KEY(gbd)); 627 627 GB_print_error(); … … 1125 1125 fmaster = fopen( Main->path, "r" ); /* old master !!!! */ 1126 1126 if (!fmaster){ /* Oh no, where is my old master */ 1127 return GB_export_error ("Save Changes is missing master ARB file '%s',\n"1128 " save database first", Main->path);1127 return GB_export_errorf("Save Changes is missing master ARB file '%s',\n" 1128 " save database first", Main->path); 1129 1129 } 1130 1130 fclose(fmaster); 1131 1131 if (GB_unlink(path)<0){ 1132 return GB_export_error ("File '%s' already exists and cannot be deleted\n(Reason: %s)",path, GB_await_error());1132 return GB_export_errorf("File '%s' already exists and cannot be deleted\n(Reason: %s)",path, GB_await_error()); 1133 1133 }; /* delete old file */ 1134 1134 … … 1209 1209 if (refpath && strcmp(refpath, Main->path) ) 1210 1210 { 1211 return GB_export_error ("Internal ARB Error, master file rename '%s'!= '%s',\n"1212 " save database first", refpath,Main->path);1211 return GB_export_errorf("Internal ARB Error, master file rename '%s'!= '%s',\n" 1212 " save database first", refpath,Main->path); 1213 1213 } 1214 1214 … … 1217 1217 if (!fmaster) /* Oh no, where is my old master */ 1218 1218 { 1219 return GB_export_error ("Quick save is missing master ARB file '%s',\n"1220 " save database first", refpath);1219 return GB_export_errorf("Quick save is missing master ARB file '%s',\n" 1220 " save database first", refpath); 1221 1221 } 1222 1222 fclose(fmaster); … … 1235 1235 sec_path = gb_overwriteName(path); 1236 1236 1237 if ((out = fopen(sec_path, "w")) == NULL) return GB_export_error ("ARBDB ERROR: Cannot save file to '%s'",sec_path);1237 if ((out = fopen(sec_path, "w")) == NULL) return GB_export_errorf("ARBDB ERROR: Cannot save file to '%s'",sec_path); 1238 1238 1239 1239 slevel = Main->security_level; … … 1257 1257 Main->transaction = translevel; 1258 1258 erg |= fclose(out); 1259 if (erg!=0) return GB_export_error ("Cannot write to '%s'",sec_path); /* was: '%s%%'",path);*/1259 if (erg!=0) return GB_export_errorf("Cannot write to '%s'",sec_path); /* was: '%s%%'",path);*/ 1260 1260 1261 1261 if (GB_rename_file(sec_path,path)) return GB_get_error(); … … 1329 1329 lslash[0] = 0; 1330 1330 if (!GB_is_directory(fullpath)) { 1331 err = GB_export_error ("Directory '%s' doesn't exist", fullpath);1331 err = GB_export_errorf("Directory '%s' doesn't exist", fullpath); 1332 1332 } 1333 1333 lslash[0] = '/'; … … 1342 1342 mode = GB_mode_of_link(path); 1343 1343 if (mode >=0 && !(mode & S_IWUSR)){ /* no write access -> lookes like a master file */ 1344 return GB_export_error (1345 "Your selected file '%s' already exists and is write protected\n"1346 " It looks like that your file is a master arb file which is\n"1347 " used by some xxx.a?? quicksave databases\n"1348 " If you want to save it nevertheless, delete it first !!!",1349 path);1344 return GB_export_errorf( 1345 "Your selected file '%s' already exists and is write protected\n" 1346 " It looks like that your file is a master arb file which is\n" 1347 " used by some xxx.a?? quicksave databases\n" 1348 " If you want to save it nevertheless, delete it first !!!", 1349 path); 1350 1350 } 1351 1351 } 1352 1352 if ( strchr(flags,'n')){ 1353 1353 if (GB_time_of_file(path)){ 1354 return GB_export_error ("Your destination file '%s' already exists.\n"1354 return GB_export_errorf("Your destination file '%s' already exists.\n" 1355 1355 "\tDelete it by hand first",path ); 1356 1356 } -
trunk/ARBDB/adali.c
r6077 r6100 176 176 if ( (error = GB_check_key(alignment_name)) ) return error; 177 177 if (strncmp(alignment_name,"ali_",4)){ 178 return GB_export_error ("your alignment_name '%s' must start with 'ali_'",179 alignment_name);178 return GB_export_errorf("your alignment_name '%s' must start with 'ali_'", 179 alignment_name); 180 180 } 181 181 return 0; … … 269 269 if (!result) { 270 270 ad_assert(error); 271 GB_export_error ("in GBT_create_alignment: %s", error);271 GB_export_errorf("in GBT_create_alignment: %s", error); 272 272 } 273 273 #if defined(DEBUG) … … 716 716 717 717 if (!gb_alignment_name) { 718 GB_export_error ("alignment '%s' not found", aliname);718 GB_export_errorf("alignment '%s' not found", aliname); 719 719 return NULL; 720 720 } … … 740 740 GB_pop_my_security(gb_main); 741 741 } 742 else error = GB_export_error ("Alignment '%s' not found", aliname);742 else error = GB_export_errorf("Alignment '%s' not found", aliname); 743 743 return error; 744 744 } … … 930 930 if (error) { 931 931 char *id = GEN_global_gene_identifier(gb_gene, gb_species); 932 error = GB_export_error ("Can't read sequence of '%s' (Reason: %s)", id, error);932 error = GB_export_errorf("Can't read sequence of '%s' (Reason: %s)", id, error); 933 933 free(id); 934 934 free(result); -
trunk/ARBDB/adcomm.c
r6062 r6100 466 466 gbd = (GBDATA *) buffer[2]; 467 467 if ( (error = gbcm_test_address((long *)gbd,GBTUM_MAGIC_NUMBER))) { 468 GB_export_error ("address %p not valid 3712",gbd);468 GB_export_errorf("address %p not valid 3712",gbd); 469 469 GB_print_error(); 470 470 return GBCM_SERVER_FAULT; … … 579 579 if (anz<0) continue; 580 580 if (anz==0) { 581 GB_export_error ("ARB_DB ERROR CLIENT TRANSACTION TIMEOUT, CLIENT DISCONNECTED (I waited %lu seconds)",timeout.tv_sec);581 GB_export_errorf("ARB_DB ERROR CLIENT TRANSACTION TIMEOUT, CLIENT DISCONNECTED (I waited %lu seconds)",timeout.tv_sec); 582 582 GB_print_error(); 583 583 gb_local->running_client_transaction = ARB_ABORT; … … 650 650 if (anz<0) continue; 651 651 if (anz==0) { 652 GB_export_error ("ARB_DB ERROR CLIENT TRANSACTION TIMEOUT, CLIENT DISCONNECTED (I waited %lu seconds)",timeout.tv_sec);652 GB_export_errorf("ARB_DB ERROR CLIENT TRANSACTION TIMEOUT, CLIENT DISCONNECTED (I waited %lu seconds)",timeout.tv_sec); 653 653 GB_print_error(); 654 654 gb_local->running_client_transaction = ARB_ABORT; … … 680 680 sin = sin; 681 681 if ( (error = gbcm_test_address((long *)gbd,GBTUM_MAGIC_NUMBER)) ) { 682 GB_export_error ("address %p not valid 4783",gbd);682 GB_export_errorf("address %p not valid 4783",gbd); 683 683 GB_print_error(); 684 684 if (error) return GBCM_SERVER_FAULT; … … 706 706 sin = sin; 707 707 if ( (error = gbcm_test_address((long *)gbd,GBTUM_MAGIC_NUMBER)) ) { 708 GB_export_error ("address %p not valid 4356",gbd);708 GB_export_errorf("address %p not valid 4356",gbd); 709 709 GB_print_error(); 710 710 return GBCM_SERVER_FAULT; … … 830 830 831 831 if ( (error = gbcm_test_address((long *) gbd, GBTUM_MAGIC_NUMBER)) ) { 832 GB_export_error ("address %p not valid 8734", gbd);832 GB_export_errorf("address %p not valid 8734", gbd); 833 833 GB_print_error(); 834 834 return GBCM_SERVER_FAULT; … … 914 914 915 915 if ( (error = gbcm_test_address((long *) gbd, GBTUM_MAGIC_NUMBER))) { 916 GB_export_error ("address %p not valid 8734", gbd);916 GB_export_errorf("address %p not valid 8734", gbd); 917 917 GB_print_error(); 918 918 return GBCM_SERVER_FAULT; … … 1479 1479 if (irror) { 1480 1480 GB_ERROR error; 1481 error = GB_export_error ("GB_unfold (%s) read error",GB_read_key_pntr((GBDATA*)gbd));1481 error = GB_export_errorf("GB_unfold (%s) read error",GB_read_key_pntr((GBDATA*)gbd)); 1482 1482 return error; 1483 1483 } … … 1497 1497 { 1498 1498 if (gbcm_write_two(GB_MAIN(gbd)->c_link->socket,GBCM_COMMAND_PUT_UPDATE,gbd->server_id) ) { 1499 return GB_export_error ("Cannot send '%s' to server",GB_KEY(gbd));1499 return GB_export_errorf("Cannot send '%s' to server",GB_KEY(gbd)); 1500 1500 } 1501 1501 return 0; … … 1508 1508 int socket = Main->c_link->socket; 1509 1509 if (gbcm_write_two(socket,GBCM_COMMAND_PUT_UPDATE_END,gbd->server_id) ) { 1510 return GB_export_error ("Cannot send '%s' to server",GB_KEY(gbd));1510 return GB_export_errorf("Cannot send '%s' to server",GB_KEY(gbd)); 1511 1511 } 1512 1512 gbcm_write_flush(socket); … … 1532 1532 GBCONTAINER *father = GB_FATHER(gbd); 1533 1533 1534 if (!father) return GB_export_error ("internal error #2453:%s",GB_KEY(gbd));1534 if (!father) return GB_export_errorf("internal error #2453:%s",GB_KEY(gbd)); 1535 1535 if (gbcm_write_two(socket,GBCM_COMMAND_PUT_UPDATE_CREATE,father->server_id) ) { 1536 return GB_export_error ("Cannot send '%s' to server",GB_KEY(gbd));1536 return GB_export_errorf("Cannot send '%s' to server",GB_KEY(gbd)); 1537 1537 } 1538 1538 buffer = (long *)GB_give_buffer(1014); … … 1547 1547 GBCM_COMMAND_PUT_UPDATE_DELETE, 1548 1548 gbd->server_id) ) { 1549 return GB_export_error ("Cannot send '%s' to server",GB_KEY(gbd));1549 return GB_export_errorf("Cannot send '%s' to server",GB_KEY(gbd)); 1550 1550 }else{ 1551 1551 return 0; … … 1559 1559 GB_MAIN_TYPE *Main = GB_MAIN(gbd); 1560 1560 1561 if (!GB_FATHER(gbd)) return GB_export_error ("internal error #2453 %s",GB_KEY(gbd));1561 if (!GB_FATHER(gbd)) return GB_export_errorf("internal error #2453 %s",GB_KEY(gbd)); 1562 1562 if (gbcm_write_two(Main->c_link->socket,GBCM_COMMAND_PUT_UPDATE_UPDATE,gbd->server_id) ) { 1563 return GB_export_error ("Cannot send '%s' to server",GB_KEY(gbd));1563 return GB_export_errorf("Cannot send '%s' to server",GB_KEY(gbd)); 1564 1564 } 1565 1565 buffer = (long *)GB_give_buffer(1016); … … 1612 1612 buffer = (long *)GB_give_buffer(1026); 1613 1613 if (gbcm_write_two(Main->c_link->socket,GBCM_COMMAND_BEGIN_TRANSACTION,Main->clock) ) { 1614 return GB_export_error ("Cannot send '%s' to server",GB_KEY(gbd));1614 return GB_export_errorf("Cannot send '%s' to server",GB_KEY(gbd)); 1615 1615 } 1616 1616 if (gbcm_write_flush(socket)) { … … 1682 1682 1683 1683 if (gbcm_write_two(socket,GBCM_COMMAND_INIT_TRANSACTION,Main->clock) ) { 1684 return GB_export_error ("Cannot send '%s' to server",GB_KEY((GBDATA*)gbd));1684 return GB_export_errorf("Cannot send '%s' to server",GB_KEY((GBDATA*)gbd)); 1685 1685 } 1686 1686 gbcm_write_string(socket,Main->this_user->username); … … 1724 1724 1725 1725 if (gbcm_write_two(socket,GBCM_COMMAND_COMMIT_TRANSACTION,gbd->server_id) ) { 1726 return GB_export_error ("Cannot send '%s' to server",GB_KEY(gbd));1726 return GB_export_errorf("Cannot send '%s' to server",GB_KEY(gbd)); 1727 1727 } 1728 1728 if (gbcm_write_flush(socket)) { … … 1739 1739 int socket = Main->c_link->socket; 1740 1740 if (gbcm_write_two(socket,GBCM_COMMAND_ABORT_TRANSACTION,gbd->server_id) ) { 1741 return GB_export_error ("Cannot send '%s' to server",GB_KEY(gbd));1741 return GB_export_errorf("Cannot send '%s' to server",GB_KEY(gbd)); 1742 1742 } 1743 1743 if (gbcm_write_flush(socket)) { … … 1951 1951 result = gbcm_read_string(socket); 1952 1952 gbcm_read_flush(socket); 1953 if (result) GB_export_error ("%s",result);1953 if (result) GB_export_errorf("%s",result); 1954 1954 return result; 1955 1955 } … … 2026 2026 return 0; 2027 2027 } 2028 return GB_export_error ("Too many users in this database: User '%s' ",user);2028 return GB_export_errorf("Too many users in this database: User '%s' ",user); 2029 2029 } 2030 2030 … … 2067 2067 } 2068 2068 } 2069 return GB_export_error ("User '%s' not logged in",user);2069 return GB_export_errorf("User '%s' not logged in",user); 2070 2070 } 2071 2071 -
trunk/ARBDB/adcompr.c
r6099 r6100 1013 1013 } 1014 1014 else{ 1015 error = GB_export_error ("Internal Error: Cannot uncompress data of field '%s'",GB_read_key_pntr(gbd));1015 error = GB_export_errorf("Internal Error: Cannot uncompress data of field '%s'",GB_read_key_pntr(gbd)); 1016 1016 } 1017 1017 -
trunk/ARBDB/adindex.c
r5971 r6100 800 800 GB_MAIN_TYPE *Main = GB_MAIN(gbd); 801 801 if (memsize < _GBCMC_UNDOCOM_SET_MEM){ 802 return GB_export_error("Too lessUNDO memory specified: should be more than %i",802 return GB_export_errorf("Not enough UNDO memory specified: should be more than %i", 803 803 _GBCMC_UNDOCOM_SET_MEM); 804 804 } -
trunk/ARBDB/aditem.c
r6083 r6100 48 48 if (error) { 49 49 gb_item = 0; 50 GB_export_error ("Can't create %s '%s': %s", itemname, id, error);50 GB_export_errorf("Can't create %s '%s': %s", itemname, id, error); 51 51 } 52 52 … … 92 92 GBDATA *gb_any = GB_find(gb_item_data, id_field, down_2_level); 93 93 const char *itemname = gb_any ? GB_read_key_pntr(GB_get_father(gb_any)) : "<item>"; 94 GB_export_error ("Could not find %s with %s '%s'", itemname, id_field, id_value);94 GB_export_errorf("Could not find %s with %s '%s'", itemname, id_field, id_value); 95 95 } 96 96 return gb_found; -
trunk/ARBDB/adlang1.c
r6057 r6100 212 212 freeset(params, NULL); 213 213 res = GBS_strclose(str); 214 err = GB_export_error ("Unknown Parameter '%s' in command '%s'\n\tPARAMETERS:\n%s",argv[i].str,com,res);214 err = GB_export_errorf("Unknown Parameter '%s' in command '%s'\n\tPARAMETERS:\n%s",argv[i].str,com,res); 215 215 free(res); 216 216 return err; … … 875 875 else if (strcmp(args->command, "upper") == 0) mode = 1; 876 876 else if (strcmp(args->command, "caps") == 0) mode = 2; 877 else return GB_export_error ("Unknown command '%s'", args->command);877 else return GB_export_errorf("Unknown command '%s'", args->command); 878 878 879 879 if (args->cparam!=0) return GBS_global_string("syntax: %s (no parameters)", args->command); … … 2297 2297 if (error) { 2298 2298 gb_assert(!seq); 2299 GB_export_error( "%s",error);2299 GB_export_error(error); 2300 2300 } 2301 2301 -
trunk/ARBDB/adlink.c
r5356 r6100 17 17 s = strchr(link,':'); 18 18 if (!s){ 19 GB_export_error ("Your link '%s' does not contain a ':' character",link);19 GB_export_errorf("Your link '%s' does not contain a ':' character",link); 20 20 return 0; 21 21 } … … 25 25 *s = c; 26 26 if (!lf){ 27 GB_export_error ("Your link tag '%s' is unknown to the system",link);27 GB_export_errorf("Your link tag '%s' is unknown to the system",link); 28 28 return 0; 29 29 } -
trunk/ARBDB/admap.c
r5847 r6100 677 677 error: 678 678 679 GB_export_error ("Error while saving FastLoad-File '%s'", opath);679 GB_export_errorf("Error while saving FastLoad-File '%s'", opath); 680 680 GB_unlink_or_warn(opath, NULL); 681 681 -
trunk/ARBDB/admatch.c
r5839 r6100 749 749 *(bar++) = 0; 750 750 } else { 751 GB_export_error ("SRT ERROR: no '=' found in command '%s' (position > %zi)", icommand, doppelpunkt-command+1);751 GB_export_errorf("SRT ERROR: no '=' found in command '%s' (position > %zi)", icommand, doppelpunkt-command+1); 752 752 free(command); 753 753 free(in); … … 848 848 free(command); 849 849 free(in); 850 GB_export_error( "%s",error);850 GB_export_error(error); 851 851 return 0; 852 852 } -
trunk/ARBDB/adname.c
r6020 r6100 90 90 91 91 if (gb_found_species && gb_species != gb_found_species) { 92 return GB_export_error ("A species named '%s' already exists.",newname);92 return GB_export_errorf("A species named '%s' already exists.",newname); 93 93 } 94 94 } 95 95 96 96 if (!gb_species) { 97 return GB_export_error ("Expected that a species named '%s' exists (maybe there are duplicate species, database might be corrupt)",oldname);97 return GB_export_errorf("Expected that a species named '%s' exists (maybe there are duplicate species, database might be corrupt)",oldname); 98 98 } 99 99 -
trunk/ARBDB/adquery.c
r6099 r6100 441 441 GB_TYPES oldType = GB_TYPE(gbsp); 442 442 if (create != oldType) { /* type mismatch */ 443 GB_export_error ("Inconsistent type for field '%s' (existing=%i, expected=%i)", str, oldType, create);443 GB_export_errorf("Inconsistent type for field '%s' (existing=%i, expected=%i)", str, oldType, create); 444 444 return NULL; 445 445 } … … 481 481 if (seperator == '-') { 482 482 if ((*s2) != '>'){ 483 GB_export_error ("Invalid key for gb_search '%s'",str);483 GB_export_errorf("Invalid key for gb_search '%s'",str); 484 484 GB_print_error(); 485 485 return NULL; … … 554 554 long type = GB_TYPE(gbd); 555 555 if (type != expected_type) { 556 GB_export_error ("Field '%s' has wrong type (found=%li, expected=%li)", fieldname, type, expected_type);556 GB_export_errorf("Field '%s' has wrong type (found=%li, expected=%li)", fieldname, type, expected_type); 557 557 gbd = 0; 558 558 } … … 946 946 const char *hp = gbs_search_second_x(s1+1); 947 947 if (!hp){ 948 GB_export_error ("unbalanced '\"' in '%s'",commands);948 GB_export_errorf("unbalanced '\"' in '%s'",commands); 949 949 return NULL; 950 950 } … … 1163 1163 } 1164 1164 1165 GB_export_error ("Command '%s' failed:\nReason: %s", commands, error);1165 GB_export_errorf("Command '%s' failed:\nReason: %s", commands, error); 1166 1166 return NULL; 1167 1167 } -
trunk/ARBDB/adseqcompr.c
r5839 r6100 416 416 int leafcount = g_b_count_leafs(tree); 417 417 if (!leafcount) { 418 error = GB_export_error ("Tree contains no sequences with data in '%s'", ali_name);418 error = GB_export_errorf("Tree contains no sequences with data in '%s'", ali_name); 419 419 } 420 420 else { … … 726 726 ctree = (GB_CTREE *)GBT_read_tree(gb_main,(char *)tree_name,-sizeof(GB_CTREE)); 727 727 if (!ctree) { 728 error = GB_export_error ("Tree %s not found in database",tree_name);728 error = GB_export_errorf("Tree %s not found in database",tree_name); 729 729 } 730 730 else { -
trunk/ARBDB/adsocket.c
r6099 r6100 358 358 return "Could not open socket on Server"; 359 359 } 360 if (chmod(mach_name[0],0777)) return GB_export_error ("Cannot change mode of socket '%s'",mach_name[0]);360 if (chmod(mach_name[0],0777)) return GB_export_errorf("Cannot change mode of socket '%s'",mach_name[0]); 361 361 } 362 362 *unix_name = mach_name[0]; … … 646 646 GB_ERROR GB_symlink(const char *name1, const char *name2){ /* name1 is the existing file !!! */ 647 647 if (symlink(name1,name2)<0){ 648 return GB_export_error ("Cannot create symlink '%s' to file '%s'",name2,name1);648 return GB_export_errorf("Cannot create symlink '%s' to file '%s'",name2,name1); 649 649 } 650 650 return 0; … … 653 653 GB_ERROR GB_set_mode_of_file(const char *path,long mode) 654 654 { 655 if (chmod(path, (int)mode)) return GB_export_error ("Cannot change mode of '%s'",path);655 if (chmod(path, (int)mode)) return GB_export_errorf("Cannot change mode of '%s'",path); 656 656 return 0; 657 657 } … … 735 735 } 736 736 if (buffer == MAP_FAILED){ 737 GB_export_error ("GB_map_file: Error Out of Memory: mmap failes (errno: %i)", errno);737 GB_export_errorf("GB_map_file: Error Out of Memory: mmap failes (errno: %i)", errno); 738 738 return NULL; 739 739 } … … 746 746 in = fopen(path,"r"); 747 747 if (!in) { 748 GB_export_error ("GB_map_file: sorry file '%s' not readable",path);748 GB_export_errorf("GB_map_file: sorry file '%s' not readable",path); 749 749 return NULL; 750 750 } … … 1245 1245 } 1246 1246 else if (strlen(anypath) >= PATH_MAX) { 1247 GB_export_error ("Path too long (> %i chars)", PATH_MAX-1);1247 GB_export_errorf("Path too long (> %i chars)", PATH_MAX-1); 1248 1248 } 1249 1249 else { -
trunk/ARBDB/adstring.c
r6099 r6100 56 56 dirp = opendir(fulldir); 57 57 if (!dirp){ 58 GB_ERROR error = GB_export_error ("Directory %s of file %s.arb not readable",fulldir,file);58 GB_ERROR error = GB_export_errorf("Directory %s of file %s.arb not readable",fulldir,file); 59 59 free(path); 60 60 return error; … … 211 211 * 212 212 * GB_export_error() shall only export, not return the error message. 213 * if only used for formatting GBS_global_string shall be used. 213 * if only used for formatting GBS_global_string shall be used 214 * (most cases where GB_export_errorf is used are candidates for this. 215 * GB_export_error was generally misused for this, before 216 * GBS_global_string was added!) 214 217 * 215 218 * GB_export_IO_error() shall not export and be renamed into GB_IO_error() … … 224 227 static char *GB_error_buffer = 0; 225 228 226 GB_ERROR GB_export_error(const char *templat, ...) { 227 /* goes to header: __ATTR__FORMAT(1) */ 229 GB_ERROR GB_export_error(const char *error) { // just a temp hack around format-warnings 230 return GB_export_errorf("%s", error); 231 } 232 233 GB_ERROR GB_export_errorf(const char *templat, ...) { 234 /* goes to header: __ATTR__FORMAT(1) __ATTR__DEPRECATED */ 228 235 229 236 char buffer[GBS_GLOBAL_STRING_SIZE]; 230 char *p = buffer;237 char *p = buffer; 231 238 va_list parg; 239 232 240 memset(buffer,0,1000); 241 233 242 #if defined(DEVEL_RALF) 234 #warning dont prepend error here 243 #warning dont prepend error here 235 244 #endif /* DEVEL_RALF */ 236 sprintf (buffer,"ARB ERROR: "); 237 p += strlen(p);245 246 p += sprintf(buffer,"ARB ERROR: "); 238 247 va_start(parg,templat); 239 248 … … 568 577 if (!key || key[0] == 0) return GB_export_error("Empty key is not allowed"); 569 578 len = strlen(key); 570 if (len>GB_KEY_LEN_MAX) return GB_export_error ("Invalid key '%s': too long",key);571 if (len < GB_KEY_LEN_MIN) return GB_export_error ("Invalid key '%s': too short",key);579 if (len>GB_KEY_LEN_MAX) return GB_export_errorf("Invalid key '%s': too long",key); 580 if (len < GB_KEY_LEN_MIN) return GB_export_errorf("Invalid key '%s': too short",key); 572 581 573 582 for (i = 0; key[i]; ++i) { … … 577 586 if ( (c>='0') && (c<='9')) continue; 578 587 if ( (c=='_') ) continue; 579 return GB_export_error ("Invalid character '%c' in '%s'; allowed: a-z A-Z 0-9 '_' ", c, key);588 return GB_export_errorf("Invalid character '%c' in '%s'; allowed: a-z A-Z 0-9 '_' ", c, key); 580 589 } 581 590 … … 589 598 if (!key || key[0] == 0) return GB_export_error("Empty key is not allowed"); 590 599 len = strlen(key); 591 if (len>GB_KEY_LEN_MAX) return GB_export_error ("Invalid key '%s': too long",key);592 if (len < 1) return GB_export_error ("Invalid key '%s': too short",key); // here it differs from GB_check_key600 if (len>GB_KEY_LEN_MAX) return GB_export_errorf("Invalid key '%s': too long",key); 601 if (len < 1) return GB_export_errorf("Invalid key '%s': too short",key); // here it differs from GB_check_key 593 602 594 603 for (i = 0; key[i]; ++i) { … … 598 607 if ( (c>='0') && (c<='9')) continue; 599 608 if ( (c=='_') ) continue; 600 return GB_export_error ("Invalid character '%c' in '%s'; allowed: a-z A-Z 0-9 '_' ", c, key);609 return GB_export_errorf("Invalid character '%c' in '%s'; allowed: a-z A-Z 0-9 '_' ", c, key); 601 610 } 602 611 … … 631 640 if (c == '-') { 632 641 if (key_end[1] != '>') { 633 err = GB_export_error ("'>' expected after '-' in '%s'", key);642 err = GB_export_errorf("'>' expected after '-' in '%s'", key); 634 643 } 635 644 start = key_end+2; … … 1086 1095 } 1087 1096 1088 if (!names) GB_export_error ("can't read directory '%s'", fulldir);1097 if (!names) GB_export_errorf("can't read directory '%s'", fulldir); 1089 1098 } 1090 1099 } -
trunk/ARBDB/adtables.c
r5525 r6100 41 41 sep = strchr(link,':'); 42 42 if (!sep){ 43 GB_export_error ("Link '%s' is missing second ':' tag", link);43 GB_export_errorf("Link '%s' is missing second ':' tag", link); 44 44 return NULL; 45 45 } … … 50 50 51 51 if (!gb_table){ 52 GB_export_error ("Table '%s' does not exist",link);52 GB_export_errorf("Table '%s' does not exist",link); 53 53 return NULL; 54 54 } … … 202 202 GB_TYPES type = GBT_get_type_of_table_entry_field(gb_table,fieldname); 203 203 if (type == GB_NONE){ 204 return GB_export_error ("There is no field description '%s' for your table", fieldname);204 return GB_export_errorf("There is no field description '%s' for your table", fieldname); 205 205 } 206 206 gb_entry_field = GB_search(gb_entry,"fieldname",type); -
trunk/ARBDB/adtools.c
r6055 r6100 65 65 if (strchr(name,':')) return 0; 66 66 in = fopen(name,"r"); 67 if (!in) return GB_export_error ("Cannot find file '%s'",name);67 if (!in) return GB_export_errorf("Cannot find file '%s'",name); 68 68 i = gb_read_in_long(in, 0); 69 69 if ( (i== 0x56430176) || (i == GBTUM_MAGIC_NUMBER) || (i == GBTUM_MAGIC_REVERSED)) { … … 79 79 80 80 81 return GB_export_error ("'%s' is not an arb file",name);81 return GB_export_errorf("'%s' is not an arb file",name); 82 82 } 83 83 -
trunk/ARBDB/adtree.c
r6065 r6100 625 625 626 626 gb_assert(error); 627 GB_export_error ("Couldn't read tree '%s' (Reason: %s)", tree_name, error);627 GB_export_errorf("Couldn't read tree '%s' (Reason: %s)", tree_name, error); 628 628 return NULL; 629 629 } … … 801 801 802 802 if (!gb_tree) { 803 GB_export_error ("tree '%s' not found",tree_name);803 GB_export_errorf("tree '%s' not found",tree_name); 804 804 } 805 805 else { 806 806 GBDATA *gb_nnodes = GB_entry(gb_tree,"nnodes"); 807 807 if (!gb_nnodes) { 808 GB_export_error ("nnodes not found in tree '%s'",tree_name);808 GB_export_errorf("nnodes not found in tree '%s'",tree_name); 809 809 } 810 810 else { … … 842 842 if ( (error = GB_check_key(tree_name)) ) return error; 843 843 if (strncmp(tree_name,"tree_",5)){ 844 return GB_export_error ("your treename '%s' does not begin with 'tree_'",tree_name);844 return GB_export_errorf("your treename '%s' does not begin with 'tree_'",tree_name); 845 845 } 846 846 return 0; -
trunk/ARBDB/arbdb.c
r6099 r6100 984 984 case GB_FLOAT: return GB_write_float(gbd,GB_atof(val)); 985 985 case GB_BITS: return GB_write_bits(gbd,val,strlen(val),"0"); 986 default: return GB_export_error ("Error: You cannot use GB_write_as_string on this type of entry (%s)",GB_read_key_pntr(gbd));986 default: return GB_export_errorf("Error: You cannot use GB_write_as_string on this type of entry (%s)",GB_read_key_pntr(gbd)); 987 987 } 988 988 } … … 1012 1012 GB_ERROR gb_security_error(GBDATA *gbd){ 1013 1013 GB_MAIN_TYPE *Main = GB_MAIN(gbd); 1014 const char *error = GB_export_error ("Protection: Attempt to change a level-%i-'%s'-entry, \n"1015 "but your current security level is only %i",1016 GB_GET_SECURITY_WRITE(gbd),1017 GB_read_key_pntr(gbd),1018 Main->security_level);1014 const char *error = GB_export_errorf("Protection: Attempt to change a level-%i-'%s'-entry, \n" 1015 "but your current security level is only %i", 1016 GB_GET_SECURITY_WRITE(gbd), 1017 GB_read_key_pntr(gbd), 1018 Main->security_level); 1019 1019 1020 1020 #if defined(DEBUG) … … 1297 1297 GB_TEST_TRANSACTION(father); 1298 1298 if ( GB_TYPE(father)!=GB_DB) { 1299 GB_export_error ("GB_create: father (%s) is not of GB_DB type (%i) (creating '%s')",1300 GB_read_key_pntr(father),GB_TYPE(father),key);1299 GB_export_errorf("GB_create: father (%s) is not of GB_DB type (%i) (creating '%s')", 1300 GB_read_key_pntr(father),GB_TYPE(father),key); 1301 1301 return NULL; 1302 1302 }; … … 1330 1330 GB_TEST_TRANSACTION(father); 1331 1331 if ( GB_TYPE(father)!=GB_DB) { 1332 GB_export_error ("GB_create: father (%s) is not of GB_DB type (%i) (creating '%s')",1333 GB_read_key_pntr(father),GB_TYPE(father),key);1332 GB_export_errorf("GB_create: father (%s) is not of GB_DB type (%i) (creating '%s')", 1333 GB_read_key_pntr(father),GB_TYPE(father),key); 1334 1334 return NULL; 1335 1335 }; … … 1349 1349 GB_TEST_TRANSACTION(source); 1350 1350 if (GB_GET_SECURITY_DELETE(source)>GB_MAIN(source)->security_level) { 1351 return GB_export_error ("Security error in GB_delete: %s",GB_read_key_pntr(source));1351 return GB_export_errorf("Security error in GB_delete: %s",GB_read_key_pntr(source)); 1352 1352 } 1353 1353 … … 1412 1412 if (GB_TYPE(dest) != type) 1413 1413 { 1414 return GB_export_error ("incompatible types in GB_copy (source %s:%u != %s:%u",1415 GB_read_key_pntr(source), type, GB_read_key_pntr(dest), GB_TYPE(dest));1414 return GB_export_errorf("incompatible types in GB_copy (source %s:%u != %s:%u", 1415 GB_read_key_pntr(source), type, GB_read_key_pntr(dest), GB_TYPE(dest)); 1416 1416 } 1417 1417 … … 1451 1451 if (GB_TYPE(destc) != GB_DB) 1452 1452 { 1453 GB_ERROR err = GB_export_error ("GB_COPY Type conflict %s:%i != %s:%i",1454 GB_read_key_pntr(dest), GB_TYPE(dest), GB_read_key_pntr(source), GB_DB);1453 GB_ERROR err = GB_export_errorf("GB_COPY Type conflict %s:%i != %s:%i", 1454 GB_read_key_pntr(dest), GB_TYPE(dest), GB_read_key_pntr(source), GB_DB); 1455 1455 GB_internal_error(err); 1456 1456 return err; … … 1626 1626 GB_TEST_TRANSACTION(gbd); 1627 1627 if (GB_GET_SECURITY_DELETE(gbd)>GB_MAIN(gbd)->security_level) 1628 return GB_export_error ("Security error in GB_set_temporary: %s",GB_read_key_pntr(gbd));1628 return GB_export_errorf("Security error in GB_set_temporary: %s",GB_read_key_pntr(gbd)); 1629 1629 gbd->flags.temporary = 1; 1630 1630 gb_touch_entry(gbd,gb_changed); … … 1731 1731 gbd = (GBDATA *)Main->data; 1732 1732 if (Main->transaction>0) { 1733 error = GB_export_error ("GB_begin_transaction called %i !!!",1734 Main->transaction);1733 error = GB_export_errorf("GB_begin_transaction called %i !!!", 1734 Main->transaction); 1735 1735 GB_internal_error(error); 1736 1736 return GB_push_transaction(gbd); … … 2275 2275 } 2276 2276 if (GB_TYPE(gbd) != GB_DB) { 2277 GB_ERROR error =GB_export_error("You cannot release non container (%s)",2278 GB_read_key_pntr(gbd));2277 GB_ERROR error = GB_export_errorf("You cannot release non container (%s)", 2278 GB_read_key_pntr(gbd)); 2279 2279 GB_internal_error(error); 2280 2280 return error; … … 2336 2336 2337 2337 if (GB_read_clients(gb_main)>0) 2338 return GB_export_error ("There are %li clients (editors, tree programms) connected to this server,\n"2339 "please close clients and rerun operation",2340 GB_read_clients(gb_main));2338 return GB_export_errorf("There are %li clients (editors, tree programms) connected to this server,\n" 2339 "please close clients and rerun operation", 2340 GB_read_clients(gb_main)); 2341 2341 2342 2342 if (listsize <=0) return 0; … … 2427 2427 GBCONTAINER *gbc = (GBCONTAINER *)gbd; 2428 2428 if (GB_TYPE(gbc) != GB_DB) { 2429 GB_ERROR error = GB_export_error ("GB_write_usr_private: not a container (%s)",GB_read_key_pntr(gbd));2429 GB_ERROR error = GB_export_errorf("GB_write_usr_private: not a container (%s)",GB_read_key_pntr(gbd)); 2430 2430 GB_internal_error(error); 2431 2431 return 0; … … 2437 2437 GBCONTAINER *gbc = (GBCONTAINER *)gbd; 2438 2438 if (GB_TYPE(gbc) != GB_DB) { 2439 GB_ERROR error = GB_export_error ("GB_write_usr_private: not a container (%s)",GB_read_key_pntr(gbd));2439 GB_ERROR error = GB_export_errorf("GB_write_usr_private: not a container (%s)",GB_read_key_pntr(gbd)); 2440 2440 GB_internal_error(error); 2441 2441 return 0; -
trunk/AWT/AWT_csp.cxx
r5968 r6100 82 82 GB_ERROR error = 0; 83 83 if (alignment_length <= 1) 84 return GB_export_error ("Unknown Alignment Size: Name '%s'\n"84 return GB_export_errorf("Unknown Alignment Size: Name '%s'\n" 85 85 " Select a Valid Alignment",alignment_name); 86 86 if (filter && filter->filter_len != alignment_length) -
trunk/AWT/AWT_input_mask.cxx
r6034 r6100 144 144 GB_ERROR awt_input_mask_id_list::add(const string& name, awt_mask_item *item) { 145 145 awt_mask_item *existing = lookup(name); 146 if (existing) return GB_export_error ("ID '%s' already exists", name.c_str());146 if (existing) return GB_export_errorf("ID '%s' already exists", name.c_str()); 147 147 148 148 id[name] = item; … … 150 150 } 151 151 GB_ERROR awt_input_mask_id_list::remove(const string& name) { 152 if (!lookup(name)) return GB_export_error ("ID '%s' does not exist", name.c_str());152 if (!lookup(name)) return GB_export_errorf("ID '%s' does not exist", name.c_str()); 153 153 id.erase(name); 154 154 return 0; … … 168 168 GB_ERROR error = 0; 169 169 if (has_name()) { 170 error = GB_export_error ("Element already has name (%s)", get_name().c_str());170 error = GB_export_errorf("Element already has name (%s)", get_name().c_str()); 171 171 } 172 172 else { … … 1664 1664 1665 1665 if ((cmd == CMD_GLOBAL && local_exists) || (cmd == CMD_LOCAL && global_exists)) { 1666 error = GB_export_error ("ID '%s' already declared as %s ID (rename your local id)",1667 id.c_str(), cmd == CMD_LOCAL ? "global" : "local");1666 error = GB_export_errorf("ID '%s' already declared as %s ID (rename your local id)", 1667 id.c_str(), cmd == CMD_LOCAL ? "global" : "local"); 1668 1668 } 1669 1669 else if (cmd == CMD_LOCAL && local_exists) { 1670 error = GB_export_error ("ID '%s' declared twice", id.c_str());1670 error = GB_export_errorf("ID '%s' declared twice", id.c_str()); 1671 1671 } 1672 1672 … … 1899 1899 for (map<string, size_t>::const_iterator r = referenced_ids.begin(); r != referenced_ids.end(); ++r) { 1900 1900 if (declared_ids.find(r->first) == declared_ids.end()) { 1901 error = GB_export_error ("ID '%s' used in line #%zu was not declared", r->first.c_str(), r->second);1901 error = GB_export_errorf("ID '%s' used in line #%zu was not declared", r->first.c_str(), r->second); 1902 1902 aw_message(error); 1903 1903 } -
trunk/AWT/AWT_nds.cxx
r5963 r6100 362 362 } 363 363 else { 364 error = GB_export_error ("Expected entry '%s' in saved config", inherit_key);364 error = GB_export_errorf("Expected entry '%s' in saved config", inherit_key); 365 365 } 366 366 } … … 398 398 } 399 399 else { 400 error = GB_export_error ("Expected entry '%s' in saved config", flag1_key);400 error = GB_export_errorf("Expected entry '%s' in saved config", flag1_key); 401 401 } 402 402 } -
trunk/AWT/AWT_query_and_functions.cxx
r5999 r6100 2333 2333 else { 2334 2334 char *name = GBT_read_string(gb_item,"name"); 2335 error = GB_export_error ("Field '%s' of %s '%s' has incombatible type", key, cbs->selector->item_name, name);2335 error = GB_export_errorf("Field '%s' of %s '%s' has incombatible type", key, cbs->selector->item_name, name); 2336 2336 free(name); 2337 2337 } -
trunk/AWT/AWT_seq_colors.cxx
r5928 r6100 200 200 char *val = GBT_read_string(gb_def,buf); 201 201 if (strlen(val) != 2 || val[1] >'9' || val[1] < '0'){ 202 aw_message(GB_export_error ("Error in Color Lookup Table: '%s' is not of type X#",val));202 aw_message(GB_export_errorf("Error in Color Lookup Table: '%s' is not of type X#",val)); 203 203 delete val; 204 204 delete sc; -
trunk/AWT/AWT_tree.cxx
r5925 r6100 1137 1137 else if (new_group->is_leaf) { 1138 1138 if (new_group->name) { 1139 error = GB_export_error ("'%s' is not a valid target for group information of '%s'.", new_group->name, name);1139 error = GB_export_errorf("'%s' is not a valid target for group information of '%s'.", new_group->name, name); 1140 1140 } 1141 1141 else if (new_group->gb_node) { -
trunk/AWT/AWT_www.cxx
r5842 r6100 111 111 112 112 if (!gb_species){ 113 error = GB_export_error ("Cannot find species '%s'",selected_species);113 error = GB_export_errorf("Cannot find species '%s'",selected_species); 114 114 }else{ 115 115 error = awt_openURL_by_gbd(aw_root,gb_main, gb_species, selected_species); -
trunk/AWT/awt_input_mask_internal.hxx
r6031 r6100 125 125 126 126 GB_ERROR add_local_id(const std::string& name, awt_mask_item *handler) { 127 if (has_global_id(name)) return GB_export_error ("ID '%s' already defined as GLOBAL", name.c_str());127 if (has_global_id(name)) return GB_export_errorf("ID '%s' already defined as GLOBAL", name.c_str()); 128 128 return ids.add(name, handler); 129 129 } 130 130 131 131 GB_ERROR add_global_id(const std::string& name, awt_mask_item *handler) { 132 if (has_local_id(name)) return GB_export_error ("ID '%s' already defined as LOCAL", name.c_str());132 if (has_local_id(name)) return GB_export_errorf("ID '%s' already defined as LOCAL", name.c_str()); 133 133 return global_ids.add(name, handler); 134 134 } … … 147 147 found = ids.lookup(name); 148 148 if (!found) found = global_ids.lookup(name); 149 if (!found) error = GB_export_error ("No item '%s' declared", name.c_str());149 if (!found) error = GB_export_errorf("No item '%s' declared", name.c_str()); 150 150 } 151 151 return found; -
trunk/AWTI/AWTI_import.cxx
r6096 r6100 789 789 char *file = 0; 790 790 if (awtcig.current_file[0]) file = awtcig.current_file[0]; 791 GB_ERROR msg = GB_export_error ("A database entry in file '%s' is longer than %i lines.\n"792 " This might be the result of a wrong input format\n"793 " or a long comment in a sequence\n",file,line);791 GB_ERROR msg = GB_export_errorf("A database entry in file '%s' is longer than %i lines.\n" 792 " This might be the result of a wrong input format\n" 793 " or a long comment in a sequence\n",file,line); 794 794 795 795 switch (aw_question(msg,"Continue Reading,Continue Reading (Never ask again),Abort")) { … … 889 889 if (!p) break; 890 890 } 891 return GB_export_error ("No Start of Sequence found (%i lines read)", max_line);891 return GB_export_errorf("No Start of Sequence found (%i lines read)", max_line); 892 892 893 893 read_sequence: -
trunk/DIST/DI_matr.cxx
r6065 r6100 314 314 if (!gb_species) { 315 315 if (show_warnings) { 316 aw_message(GB_export_error ("Species '%s' found in tree '%s' but NOT in database.",317 species_in_sort_tree[i], sort_tree_name));316 aw_message(GB_export_errorf("Species '%s' found in tree '%s' but NOT in database.", 317 species_in_sort_tree[i], sort_tree_name)); 318 318 } 319 319 unknown_species_in_tree++; … … 355 355 356 356 if (unknown_species_in_tree && show_warnings) { 357 aw_message(GB_export_error ("We found %i species in tree '%s' which are not in database.\n"358 "This does not affect the current calculation, but you should think about it.",359 unknown_species_in_tree, sort_tree_name));357 aw_message(GB_export_errorf("We found %i species in tree '%s' which are not in database.\n" 358 "This does not affect the current calculation, but you should think about it.", 359 unknown_species_in_tree, sort_tree_name)); 360 360 } 361 361 -
trunk/DIST/DI_mldist.cxx
r5392 r6100 266 266 tt -= slope / curv; 267 267 if (tt > 10000.0) { 268 aw_message(GB_export_error ("INFINITE DISTANCE BETWEEN SPECIES %ld AND %ld; -1.0 WAS WRITTEN\n", i, j));268 aw_message(GB_export_errorf("INFINITE DISTANCE BETWEEN SPECIES %ld AND %ld; -1.0 WAS WRITTEN\n", i, j)); 269 269 tt = -1.0 / fracchange; 270 270 break; -
trunk/DIST/DI_protdist.cxx
r5708 r6100 715 715 tt -= slope / curv; 716 716 if (tt > 10000.0) { 717 aw_message(GB_export_error ("INFINITE DISTANCE BETWEEN SPECIES %ld AND %ld; -1.0 WAS WRITTEN\n", i, j));717 aw_message(GB_export_errorf("INFINITE DISTANCE BETWEEN SPECIES %ld AND %ld; -1.0 WAS WRITTEN\n", i, j)); 718 718 tt = -1.0 / fracchange; 719 719 break; … … 761 761 double drel = 1.0 - rel - 0.2 * rel * rel; 762 762 if (drel < 0.0) { 763 aw_message(GB_export_error ("DISTANCE BETWEEN SEQUENCES %3ld AND %3ld IS TOO LARGE FOR KIMURA FORMULA", i, j));763 aw_message(GB_export_errorf("DISTANCE BETWEEN SEQUENCES %3ld AND %3ld IS TOO LARGE FOR KIMURA FORMULA", i, j)); 764 764 tt = -1.0; 765 765 }else{ -
trunk/EDIT/edit.cxx
r6069 r6100 445 445 default: 446 446 if (does_species_exists(spname)) { 447 if (do_what == 1) error = GB_export_error ("Species %s already exists",spname);447 if (do_what == 1) error = GB_export_errorf("Species %s already exists",spname); 448 448 }else{ 449 if (do_what == 0) error = GB_export_error ("Cannot find species %s",spname);449 if (do_what == 0) error = GB_export_errorf("Cannot find species %s",spname); 450 450 } 451 451 } -
trunk/EDIT4/ED4_ProteinViewer.cxx
r5943 r6100 604 604 startPos4Translation = atoi(GB_read_char_pntr(gb_codonStart))-1; 605 605 if (startPos4Translation<0 || startPos4Translation>2) { 606 error = GB_export_error ("'%s' has invalid codon_start entry %i (allowed: 1..3)",607 speciesName, startPos4Translation+1);606 error = GB_export_errorf("'%s' has invalid codon_start entry %i (allowed: 1..3)", 607 speciesName, startPos4Translation+1); 608 608 break; 609 609 } -
trunk/EDIT4/ED4_no_class.cxx
r6033 r6100 1254 1254 } 1255 1255 else if (!foundField) { 1256 error = GB_export_error ("Field not found: '%s'", field_name);1256 error = GB_export_errorf("Field not found: '%s'", field_name); 1257 1257 } 1258 1258 } … … 1787 1787 } 1788 1788 else { 1789 error = GB_export_error ("Can't find alignment '%s'", ali);1789 error = GB_export_errorf("Can't find alignment '%s'", ali); 1790 1790 } 1791 1791 free(consensus); -
trunk/EDIT4/ED4_protein_2nd_structure.cxx
r5829 r6100 1003 1003 if (protstruct_len) protstruct_len = 0; 1004 1004 if (aw_root->awar(PFOLD_AWAR_ENABLE)->read_int()) { 1005 error = GB_export_error ( "SAI \"%s\" does not exist.\nDisabled protein structure display!", SAI_name );1005 error = GB_export_errorf( "SAI \"%s\" does not exist.\nDisabled protein structure display!", SAI_name ); 1006 1006 aw_root->awar(PFOLD_AWAR_ENABLE)->write_int(0); 1007 1007 } -
trunk/GENOM/EXP_interface.cxx
r6007 r6100 295 295 296 296 if (gb_dest) { 297 error = GB_export_error ("Experiment '%s' already exists", dest);297 error = GB_export_errorf("Experiment '%s' already exists", dest); 298 298 } 299 299 else { … … 326 326 327 327 if (!gb_source) error = "Please select an experiment"; 328 else if (gb_dest) error = GB_export_error ("Experiment '%s' already exists", dest);328 else if (gb_dest) error = GB_export_errorf("Experiment '%s' already exists", dest); 329 329 else { 330 330 GBDATA *gb_name = GB_search(gb_source, "name", GB_STRING); … … 361 361 362 362 if (!gb_source) error = "Please select a experiment"; 363 else if (gb_dest) error = GB_export_error ("Experiment '%s' already exists", dest);363 else if (gb_dest) error = GB_export_errorf("Experiment '%s' already exists", dest); 364 364 else { 365 365 gb_dest = GB_create_container(gb_experiment_data,"experiment"); -
trunk/GENOM/GEN_interface.cxx
r6007 r6100 359 359 360 360 if (!gb_source) error = "Please select a gene first"; 361 else if (gb_dest) error = GB_export_error ("Gene '%s' already exists", dest);361 else if (gb_dest) error = GB_export_errorf("Gene '%s' already exists", dest); 362 362 else { 363 363 GBDATA *gb_name = GB_search(gb_source, "name", GB_STRING); … … 417 417 418 418 if (!gb_source) error = "Please select a gene"; 419 else if (gb_dest) error = GB_export_error ("Gene '%s' already exists", dest);419 else if (gb_dest) error = GB_export_errorf("Gene '%s' already exists", dest); 420 420 else { 421 421 gb_dest = GB_create_container(gb_gene_data,"gene"); -
trunk/GENOM/GEN_map.cxx
r6072 r6100 684 684 else { // key exists 685 685 if (GB_read_type(gbd) != GB_STRING) { // test correct key type 686 error = GB_export_error ("field '%s' exists and has wrong type", key);686 error = GB_export_errorf("field '%s' exists and has wrong type", key); 687 687 } 688 688 } … … 871 871 gen_assert(short_name); 872 872 gb_exist_geneSpec = GBT_find_or_create_species(GLOBAL_gb_main, short_name); 873 if (!gb_exist_geneSpec) error = GB_export_error ("Failed to create pseudo-species '%s'", short_name);873 if (!gb_exist_geneSpec) error = GB_export_errorf("Failed to create pseudo-species '%s'", short_name); 874 874 else eg2ps->existing.add_name(short_name); 875 875 } -
trunk/MERGE/MG_gene_species.cxx
r5944 r6100 272 272 GBDATA *gb_species = GBT_find_species(GLOBAL_gb_merge, curr_species); 273 273 274 if (!gb_species) error = GB_export_error ("No such species: '%s'", curr_species);274 if (!gb_species) error = GB_export_errorf("No such species: '%s'", curr_species); 275 275 else if (!GEN_is_pseudo_gene_species(gb_species)) error = "Selected species is no gene-species"; 276 276 else { -
trunk/MERGE/MG_preserves.cxx
r5852 r6100 125 125 } 126 126 default: 127 GB_export_error ("Data type %s is not supported", GB_get_type_name(gb_data));127 GB_export_errorf("Data type %s is not supported", GB_get_type_name(gb_data)); 128 128 break; 129 129 } -
trunk/MERGE/MG_species.cxx
r6077 r6100 1001 1001 switch (d) { 1002 1002 case 0: 1003 error = GB_export_error ("Cannot find a target alignment with a type of '%s'\n"1004 "You should create one first or select a different alignment type\n"1005 "during sequence import",type);1003 error = GB_export_errorf("Cannot find a target alignment with a type of '%s'\n" 1004 "You should create one first or select a different alignment type\n" 1005 "during sequence import",type); 1006 1006 break; 1007 1007 case 1: -
trunk/NTREE/AP_consensus.cxx
r5825 r6100 609 609 610 610 long maxalignlen = GBT_get_alignment_len(GLOBAL_gb_main,align); 611 if (maxalignlen <= 0) error = GB_export_error ("alignment '%s' doesn't exist", align);611 if (maxalignlen <= 0) error = GB_export_errorf("alignment '%s' doesn't exist", align); 612 612 613 613 if (!error) { -
trunk/NTREE/AP_csp_2_gnuplot.cxx
r5851 r6100 41 41 42 42 const char *lslash = strrchr(fname, '/'); 43 if (!lslash) return GB_export_error ("'%s' has to contain a '/'", fname);43 if (!lslash) return GB_export_errorf("'%s' has to contain a '/'", fname); 44 44 45 45 char *dir = strdup(fname); … … 270 270 if (!error) { 271 271 out = fopen(fname,"w"); 272 if (!out) error = GB_export_error ("Cannot write to file '%s'",fname);272 if (!out) error = GB_export_errorf("Cannot write to file '%s'",fname); 273 273 } 274 274 -
trunk/NTREE/NT_concatenate.cxx
r5978 r6100 666 666 if (!error) id += GBS_checksum(seq_data,1,".-"); //creating checksum of the each aligned sequence to generate new accession number 667 667 } 668 if (error) error = GB_export_error ("Can't create alignment '%s'", ali_names[no_of_alignments]);668 if (error) error = GB_export_errorf("Can't create alignment '%s'", ali_names[no_of_alignments]); 669 669 } 670 670 } -
trunk/PARSIMONY/AP_tree_edge.cxx
r5725 r6100 579 579 int diff = ne[i] - old[i]; 580 580 if (diff > 1 || diff < -1){ 581 GB_export_error ("shit shit shit,diff by nni at one position not in [-1,1]: %i:%i - %i",diff,old[i],ne[i]);581 GB_export_errorf("diff by nni at one position not in [-1,1]: %i:%i - %i",diff,old[i],ne[i]); 582 582 GB_print_error(); 583 583 continue; -
trunk/PARSIMONY/PARS_main.cxx
r6072 r6100 1873 1873 continue; 1874 1874 } 1875 GB_export_error ("Unknown option '%s'",argv[0]);1875 GB_export_errorf("Unknown option '%s'",argv[0]); 1876 1876 GB_print_error(); 1877 1877 printf(" Options: Meaning:\n" -
trunk/PERL2ARB/ARB_ext.c
r5928 r6100 60 60 if (!arg){ 61 61 free(data); 62 return GB_export_error ("Sorry: You never installed a callback '%s:%s'",perl_func,perl_cl);62 return GB_export_errorf("Sorry: You never installed a callback '%s:%s'",perl_func,perl_cl); 63 63 }else{ 64 64 GBS_write_hash(gbp_cp_hash_table,data,0); -
trunk/PRIMER_DESIGN/primer_design.cxx
r5943 r6100 298 298 gb_seq = GBT_read_sequence( gb_species, alignment ); 299 299 if (!gb_seq) { 300 error = GB_export_error ("Species '%s' has no data in alignment '%s'", selected_species, alignment);300 error = GB_export_errorf("Species '%s' has no data in alignment '%s'", selected_species, alignment); 301 301 } 302 302 } … … 307 307 gb_gene = GEN_find_gene(gb_species, selected_gene); 308 308 if (!gb_gene) { 309 error = GB_export_error ("Species '%s' has no gene named '%s'", selected_species, selected_gene);309 error = GB_export_errorf("Species '%s' has no gene named '%s'", selected_species, selected_gene); 310 310 } 311 311 else { -
trunk/PROBE_DESIGN/probe_design.cxx
r5981 r6100 513 513 GBDATA *data = GBT_read_sequence(gb_species,ali_name); 514 514 if (!data) { 515 aw_message( GB_export_error ("Species '%s' has no sequence belonging to alignment '%s'", unames, ali_name));515 aw_message( GB_export_errorf("Species '%s' has no sequence belonging to alignment '%s'", unames, ali_name)); 516 516 abort = true; 517 517 } … … 1422 1422 int idx = i-'A'; 1423 1423 if (idx<0 || idx>=26 || AWT_iupac_code[idx][index].iupac==0) { 1424 err = GB_export_error ("Illegal character '%c' in IUPAC-String", i);1424 err = GB_export_errorf("Illegal character '%c' in IUPAC-String", i); 1425 1425 break; 1426 1426 } … … 2100 2100 2101 2101 if (reason) { 2102 error = GB_export_error ("Error in database format (reason: %s)", reason);2102 error = GB_export_errorf("Error in database format (reason: %s)", reason); 2103 2103 aws->insert_selection(selList, error, (long)0); 2104 2104 } … … 2107 2107 } 2108 2108 else { 2109 error = GB_export_error ("Can't open database '%s'", file_name);2109 error = GB_export_errorf("Can't open database '%s'", file_name); 2110 2110 freeset(pg_global.pg_filename, 0); 2111 2111 } -
trunk/SECEDIT/SEC_graphic.cxx
r6017 r6100 608 608 GBDATA *gb_species = GBT_find_SAI(gb_main, name); 609 609 if (!gb_species) { 610 err = GB_export_error ("Cannot find helix template SAI '%s'",name);610 err = GB_export_errorf("Cannot find helix template SAI '%s'",name); 611 611 } 612 612 else { … … 615 615 ali_len = GBT_get_alignment_len(gb_main,ali_name); 616 616 if (ali_len < 10) { 617 err = GB_export_error ("alignment '%s' to short to generate helix",ali_name);617 err = GB_export_errorf("alignment '%s' to short to generate helix",ali_name); 618 618 } 619 619 else { 620 620 gb_ali = GB_search(gb_species, ali_name, GB_FIND); 621 621 if (!gb_ali) { 622 err = GB_export_error ("Your helix structure template '%s' has no valid sequence for alignment '%s'", name,ali_name); // no sequence for name in the database !!!622 err = GB_export_errorf("Your helix structure template '%s' has no valid sequence for alignment '%s'", name,ali_name); // no sequence for name in the database !!! 623 623 } 624 624 } -
trunk/SECEDIT/SEC_main.cxx
r6017 r6100 304 304 } 305 305 else { 306 error = GB_export_error ("Can't write secondary structure to '%s'", filename);306 error = GB_export_errorf("Can't write secondary structure to '%s'", filename); 307 307 } 308 308 … … 365 365 366 366 if (!in) { 367 error = GB_export_error ("Can't open file '%s'", filename);367 error = GB_export_errorf("Can't open file '%s'", filename); 368 368 } 369 369 else { -
trunk/SERVERCNTRL/servercntrl.c
r6084 r6100 78 78 79 79 if (!(tcp_id = GBS_read_arb_tcp(arb_tcp_env))) { 80 error = GB_export_error ("Entry '%s' in $(ARBHOME)/lib/arb_tcp.dat not found", arb_tcp_env);80 error = GB_export_errorf("Entry '%s' in $(ARBHOME)/lib/arb_tcp.dat not found", arb_tcp_env); 81 81 } 82 82 else { … … 129 129 130 130 if (!port) { 131 error = GB_export_error ("Error: Missing ':' in line '%s' file $(ARBHOME)/lib/arb_tcp.dat", arb_tcp_env);131 error = GB_export_errorf("Error: Missing ':' in line '%s' file $(ARBHOME)/lib/arb_tcp.dat", arb_tcp_env); 132 132 } 133 133 else { … … 264 264 265 265 if (!(tcp_id = GBS_read_arb_tcp(arb_tcp_env))) { 266 error = GB_export_error ("Missing line '%s' in $(ARBHOME)/lib/arb_tcp.dat:",arb_tcp_env);266 error = GB_export_errorf("Missing line '%s' in $(ARBHOME)/lib/arb_tcp.dat:",arb_tcp_env); 267 267 } 268 268 else { … … 274 274 /* sprintf(command, "%s -kill -T%s &", server, tcp_id); */ 275 275 if (system(command)) { 276 error = GB_export_error ("Cannot execute '%s'",command);276 error = GB_export_errorf("Cannot execute '%s'",command); 277 277 } 278 278 aisc_close(glservercntrl.link); -
trunk/SL/AW_NAME/AW_rename.cxx
r6084 r6100 349 349 } 350 350 else { 351 err = GB_export_error ("Generation of short name for '%s' failed", full_name);351 err = GB_export_errorf("Generation of short name for '%s' failed", full_name); 352 352 } 353 353 } … … 679 679 680 680 gb_assert(!result || strlen(result) <= 8); 681 if (!result) GB_export_error ("Failed to create unique shortname (prefix='%s')", prefix);681 if (!result) GB_export_errorf("Failed to create unique shortname (prefix='%s')", prefix); 682 682 683 683 return result; -
trunk/SL/FAST_ALIGNER/fast_aligner.cxx
r6083 r6100 133 133 134 134 static inline GB_ERROR species_not_found(GB_CSTR species_name) { 135 return GB_export_error ("No species '%s' found!", species_name);135 return GB_export_errorf("No species '%s' found!", species_name); 136 136 } 137 137 … … 141 141 142 142 if (!gbd) { 143 error = GB_export_error ("No 'data' found for species '%s'", GBT_read_name(gb_species));143 error = GB_export_errorf("No 'data' found for species '%s'", GBT_read_name(gb_species)); 144 144 } 145 145 else { … … 159 159 } 160 160 else { // protection error 161 error = GB_export_error ("Cannot reverse-complement species '%s' because of protection level", GBT_read_name(gb_species));161 error = GB_export_errorf("Cannot reverse-complement species '%s' because of protection level", GBT_read_name(gb_species)); 162 162 } 163 163 … … 1129 1129 } 1130 1130 else { 1131 error = GB_export_error ("No 'data' found for species '%s'", GBT_read_name(gb_species));1131 error = GB_export_errorf("No 'data' found for species '%s'", GBT_read_name(gb_species)); 1132 1132 if (dataPtr) *dataPtr = NULL; // (user must not care to free data if we fail) 1133 1133 } … … 1150 1150 } 1151 1151 else { 1152 error = GB_export_error ("Cannot create entry '%s' for '%s'", data_name, GBT_read_name(gb_species));1152 error = GB_export_errorf("Cannot create entry '%s' for '%s'", data_name, GBT_read_name(gb_species)); 1153 1153 } 1154 1154 … … 1498 1498 GBDATA *gbd = GBT_read_sequence(gb_toAlign, relSearch.pt_server_alignment); // use a different alignment for next relative search 1499 1499 if (!gbd) { 1500 error = GB_export_error ("Species '%s' has no data in alignment '%s'", GBT_read_name(gb_toAlign), relSearch.pt_server_alignment);1500 error = GB_export_errorf("Species '%s' has no data in alignment '%s'", GBT_read_name(gb_toAlign), relSearch.pt_server_alignment); 1501 1501 } 1502 1502 else { … … 2207 2207 2208 2208 if (wasNotAllowedToAlign>0) { 2209 const char *mess = GB_export_error ("%i species were not aligned (because of protection level)", wasNotAllowedToAlign);2209 const char *mess = GB_export_errorf("%i species were not aligned (because of protection level)", wasNotAllowedToAlign); 2210 2210 aw_popup_ok(mess); 2211 2211 } … … 2213 2213 if (err_count) { 2214 2214 if (error) aw_message(error); 2215 error = GB_export_error ("Aligner produced %i error%c", err_count, err_count==1 ? '\0' : 's');2215 error = GB_export_errorf("Aligner produced %i error%c", err_count, err_count==1 ? '\0' : 's'); 2216 2216 } 2217 2217 -
trunk/SL/TREE_READ/TreeRead.cxx
r6030 r6100 475 475 tree_assert(tree||error); 476 476 if (error) { 477 GB_export_error ("Import tree: %s", error);477 GB_export_errorf("Import tree: %s", error); 478 478 tree_assert(!tree); 479 479 } -
trunk/SL/TREE_WRITE/TreeWrite.cxx
r6066 r6100 225 225 FILE *output = fopen(path, "w"); 226 226 227 if (!output) error = GB_export_error ("file '%s' could not be opened for writing", path);227 if (!output) error = GB_export_errorf("file '%s' could not be opened for writing", path); 228 228 else { 229 229 GB_transaction gb_dummy(gb_main); … … 303 303 FILE *output = fopen(path, "w"); 304 304 305 if (!output) error = GB_export_error ("file '%s' could not be opened for writing", path);305 if (!output) error = GB_export_errorf("file '%s' could not be opened for writing", path); 306 306 else { 307 307 GB_transaction gb_dummy(gb_main); -
trunk/WINDOW/AW_nawar.cxx
r6068 r6100 602 602 if (!shown_name) shown_name = default_name; 603 603 604 GBK_terminate (GBS_global_string("Error loading properties '%s': %s", shown_name, error));604 GBK_terminatef(GBS_global_string("Error loading properties '%s': %s", shown_name, error)); 605 605 } 606 606 return (AW_default) gb_default; -
trunk/WINDOW/AW_window.cxx
r6072 r6100 3433 3433 char *macro_header = GB_read_file("$(ARBHOME)/lib/macro.head"); 3434 3434 if (!macro_header) { 3435 return GB_export_error ("Cannot open file '%s'", "$(ARBHOME)/lib/macro.head");3435 return GB_export_errorf("Cannot open file '%s'", "$(ARBHOME)/lib/macro.head"); 3436 3436 } 3437 3437 … … 3440 3440 if (!prvt->recording_macro_file) { 3441 3441 delete macro_header; 3442 return GB_export_error ("Cannot open file '%s' for writing", file);3442 return GB_export_errorf("Cannot open file '%s' for writing", file); 3443 3443 } 3444 3444 prvt->stop_action_name = strdup(stop_action_name); … … 3498 3498 if (!old_cbs->is_equal(*cbs)) { // existing remote command replaced by different callback 3499 3499 #if defined(DEBUG) 3500 fp rintf(stderr, GBS_global_string("Warning: duplicated use of callback id '%s'\n", old_cbs->id));3500 fputs(GBS_global_string("Warning: duplicated use of callback id '%s'\n", old_cbs->id), stderr); 3501 3501 #if defined(DEVEL_RALF) 3502 3502 gb_assert(0); … … 3570 3570 GBT_write_string(gb_main, awar_result, ""); 3571 3571 } else { 3572 aw_message(GB_export_error ("Unknown action '%s' in macro", action));3572 aw_message(GB_export_errorf("Unknown action '%s' in macro", action)); 3573 3573 GBT_write_string(gb_main, awar_result, GB_await_error()); 3574 3574 }
