fix printf format string (size_t uses %zu, not %i)

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1422 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 16 years ago
parent c39d7fbd41
commit d04f5b1e2b

@ -2,6 +2,8 @@
* src/cmd/include.c: Include ctype.h for isalpha().
* src/bsdl/bsdl_sem.c (create_register): Use %zu for size_t with printf().
2009-01-19 Kolja Waschk <kawk>
* doc/UrJTAG.txt,

@ -206,7 +206,7 @@ static int create_register( jtag_ctrl_t *jc, char *reg_name, size_t len)
return 1;
/* convert length information to string */
snprintf( len_str, str_len, "%i", len );
snprintf( len_str, str_len, "%zu", len );
if (jc->proc_mode & BSDL_MODE_INSTR_EXEC)
cmd_run( jc->chain, cmd );

Loading…
Cancel
Save