diff --git a/jtag/src/bsdl2jtag.c b/jtag/src/bsdl2jtag.c index 6e68f9cc..d201a2bb 100644 --- a/jtag/src/bsdl2jtag.c +++ b/jtag/src/bsdl2jtag.c @@ -70,31 +70,31 @@ int endline(void) { if(i!=1) return -1; if(!strncmp(att, "INSTRUCTION_LENGTH", 18)) { i=sscanf(pline, "attribute INSTRUCTION_LENGTH of %s : entity is %i ;", tmp, &j); - if(i!=2) return -1; + if(i!=2) return -2; IR_l=j; } else if(!strncmp(att, "BOUNDARY_LENGTH", 15)){ i=sscanf(pline, "attribute BOUNDARY_LENGTH of %s : entity is %i ;", tmp, &j); - if(i!=2) return -1; + if(i!=2) return -3; BR_l=j; bs_bits=malloc(BR_l * sizeof(struct bsbit)); for(i=0;i