Fix warnings (and some of them were actually errors in a new API call)

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1567 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Rutger Hofman 16 years ago
parent e09387a550
commit 8f5fc697b8

@ -1,3 +1,19 @@
2009-05-05 Rutger Hofman <rfhh>
* include/urjtag/part.h, src/cmd/cmd_bus.c, src/cmd/cmd_detect.c,
src/cmd/cmd_signal.c, src/bsdl/bsdl_bison.y, src/part/instruction.c,
src/part/bsbit.c, src/part/part.c, src/part/signal.c: start replacing
calls to printf() with calls to urj_log(), for starters with src/part.
Sometimes that means fixing a function to return an error status where
it previously printed and returned void
* include/urjtag/data_register.h, include/urjtag/error.h,
include/urjtag/log.h, src/global/*.c, src/cmd/cmd_register.c,
src/cmd/cmd_instruction.c, src/bsdl/bsdl_sem.c, src/tap/detect.c,
src/part/data_register.c, src/svf/svf_flex.l, src/svf/svf.c,
src/flash/detectflash.c: transform a number of urj_cmd_run() calls into
API calls
2009-05-04 Rutger Hofman <rfhh>
* src/cmd/cmd_bus.c, src/bus/buses.c, include/urjtag/bus.h: transform the

@ -336,7 +336,7 @@ urj_bsdl_process_cell_info (urj_bsdl_jtag_ctrl_t *jc)
{
if (jc->proc_mode & URJ_BSDL_MODE_INSTR_EXEC)
// @@@@ RFHH check result
(void)urj_part_bsbit_alloc_control (jc->chain, ci->bit_num,
(void)urj_part_bsbit_alloc_control (jc->part, ci->bit_num,
ci->port_name, type, safe,
ci->ctrl_bit_num,
ci->disable_safe_value,
@ -351,7 +351,7 @@ urj_bsdl_process_cell_info (urj_bsdl_jtag_ctrl_t *jc)
{
if (jc->proc_mode & URJ_BSDL_MODE_INSTR_EXEC)
// @@@@ RFHH check result
(void)urj_part_bsbit_alloc (jc->chain, ci->bit_num,
(void)urj_part_bsbit_alloc (jc->part, ci->bit_num,
ci->port_name, type, safe);
if (jc->proc_mode & URJ_BSDL_MODE_INSTR_PRINT)
printf ("bit %d %s %c %d\n", ci->bit_num, ci->port_name,

@ -42,7 +42,6 @@ cmd_register_run (urj_chain_t *chain, char *params[])
{
urj_part_t *part;
unsigned int len;
urj_data_register_t *dr;
if (urj_cmd_params (params) != 3)
return -1;

@ -100,4 +100,6 @@ urj_error_string (urj_error_t err)
case URJ_ERROR_NO_BUS_DRIVER: return "no bus driver";
case URJ_ERROR_BUFFER_EXHAUSTED: return "buffer exhausted";
}
return "UNDEFINED ERROR";
}

Loading…
Cancel
Save