X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fxsvf%2Fxsvf.c;h=3613897f448696459d88b64cc8af44f9ba18d72f;hp=eea5ff16d995353a19105d9401b1f3f783cb69ee;hb=66add57aa5bae147b7996840a2287f3547b4b8ea;hpb=1552562b3a9dd74c224c19dc54713770fed323a5 diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c index eea5ff16d9..3613897f44 100644 --- a/src/xsvf/xsvf.c +++ b/src/xsvf/xsvf.c @@ -743,7 +743,7 @@ static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, cha case XCOMMENT: { - int ndx = 0; + unsigned int ndx = 0; char comment[128]; do @@ -761,7 +761,7 @@ static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, cha comment[sizeof(comment)-1] = 0; /* regardless, terminate */ if (verbose) - LOG_USER(comment); + LOG_USER("%s", comment); } break;