From 8919f07a50efc140898638d80ff855cdde5a4bfc Mon Sep 17 00:00:00 2001 From: Kolja Waschk Date: Tue, 6 Nov 2007 19:25:48 +0000 Subject: [PATCH] [ 1169349 ] better error codes for bsdl2jtag git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@699 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/src/bsdl2jtag.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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