diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 7fc001fe..ee667aa2 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -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 * doc/UrJTAG.txt, diff --git a/jtag/src/bsdl/bsdl_sem.c b/jtag/src/bsdl/bsdl_sem.c index c888c900..70a2d8a0 100644 --- a/jtag/src/bsdl/bsdl_sem.c +++ b/jtag/src/bsdl/bsdl_sem.c @@ -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 );