fix typos in debug messages

This commit is contained in:
Stefan Frederik 2021-05-31 07:39:23 +02:00
parent a1077329d8
commit c1909334cb
3 changed files with 5 additions and 5 deletions

0
src/make_sym_lcc.awk Executable file → Normal file
View File

View File

@ -1176,7 +1176,7 @@ int sym_vs_sch_pins()
) )
) { ) {
char str[2048]; char str[2048];
my_snprintf(str, S(str), "xSymbol %s: Unmatched subcircuit schematic pin direction: %s", my_snprintf(str, S(str), "Symbol %s: Unmatched subcircuit schematic pin direction: %s",
xctx->sym[i].name, lab); xctx->sym[i].name, lab);
statusmsg(str,2); statusmsg(str,2);
my_snprintf(str, S(str), " %s <--> %s", type, pin_dir); my_snprintf(str, S(str), " %s <--> %s", type, pin_dir);
@ -1195,7 +1195,7 @@ int sym_vs_sch_pins()
if(!pin_match) { if(!pin_match) {
char str[2048]; char str[2048];
/* fprintf(errfp, " unmatched sch / sym pin: %s\n", lab); */ /* fprintf(errfp, " unmatched sch / sym pin: %s\n", lab); */
my_snprintf(str, S(str), "xSymbol %s: schematic pin: %s not in symbol", xctx->sym[i].name, lab); my_snprintf(str, S(str), "Symbol %s: schematic pin: %s not in symbol", xctx->sym[i].name, lab);
statusmsg(str,2); statusmsg(str,2);
for(j = 0; j < xctx->instances; j++) { for(j = 0; j < xctx->instances; j++) {
if(!strcmp(xctx->inst[j].name, xctx->sym[i].name)) { if(!strcmp(xctx->inst[j].name, xctx->sym[i].name)) {
@ -1227,7 +1227,7 @@ int sym_vs_sch_pins()
fclose(fd); fclose(fd);
if(pin_cnt != rects) { if(pin_cnt != rects) {
char str[2048]; char str[2048];
my_snprintf(str, S(str), "xSymbol %s has %d pins, its schematic has %d pins", my_snprintf(str, S(str), "Symbol %s has %d pins, its schematic has %d pins",
xctx->sym[i].name, rects, pin_cnt); xctx->sym[i].name, rects, pin_cnt);
statusmsg(str,2); statusmsg(str,2);
for(j = 0; j < xctx->instances; j++) { for(j = 0; j < xctx->instances; j++) {
@ -1250,7 +1250,7 @@ int sym_vs_sch_pins()
if(!pin_match) { if(!pin_match) {
char str[2048]; char str[2048];
/* fprintf(errfp, " unmatched sch / sym pin: %s\n", lab); */ /* fprintf(errfp, " unmatched sch / sym pin: %s\n", lab); */
my_snprintf(str, S(str), "xSymbol %s: symbol pin: %s not in schematic", my_snprintf(str, S(str), "Symbol %s: symbol pin: %s not in schematic",
xctx->sym[i].name, pin_name ? pin_name : "<NULL>"); xctx->sym[i].name, pin_name ? pin_name : "<NULL>");
statusmsg(str,2); statusmsg(str,2);
for(k = 0; k < xctx->instances; k++) { for(k = 0; k < xctx->instances; k++) {

View File

@ -1972,7 +1972,7 @@ int load_sym_def(const char *name, FILE *embed_fd)
} }
load_ascii_string(&prop_ptr, lcc[level].fd); load_ascii_string(&prop_ptr, lcc[level].fd);
if(level + 1 >=CADMAXHIER) { if(level + 1 >=CADMAXHIER) {
fprintf(errfp, "l_s_d(): xSymbol recursively instantiating symbol: max depth reached, skipping\n"); fprintf(errfp, "l_s_d(): Symbol recursively instantiating symbol: max depth reached, skipping\n");
if(has_x) tcleval("alert_ {xSymbol recursively instantiating symbol: max depth reached, skipping} {} 1"); if(has_x) tcleval("alert_ {xSymbol recursively instantiating symbol: max depth reached, skipping} {} 1");
endfile = 1; endfile = 1;
continue; continue;