summaryrefslogtreecommitdiff
path: root/src/xsvf
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-23 01:25:39 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-23 01:25:39 +0000
commit96d3de002daa1b139da56106efd903c376abc06f (patch)
tree8b57882c89cbe1f9496099ae51a821920b24162b /src/xsvf
parent7d964404356689d55fa020dd427f7c49bef22d6c (diff)
downloadopenocd+libswd-96d3de002daa1b139da56106efd903c376abc06f.tar.gz
openocd+libswd-96d3de002daa1b139da56106efd903c376abc06f.tar.bz2
openocd+libswd-96d3de002daa1b139da56106efd903c376abc06f.tar.xz
openocd+libswd-96d3de002daa1b139da56106efd903c376abc06f.zip
More printf fixes stemming from format string change in r1882.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1888 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/xsvf')
-rw-r--r--src/xsvf/xsvf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c
index a9317d3e..f2d3aa17 100644
--- a/src/xsvf/xsvf.c
+++ b/src/xsvf/xsvf.c
@@ -1020,9 +1020,10 @@ static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, cha
if (unsupported)
{
+ off_t offset = lseek(xsvf_fd, 0, SEEK_CUR) - 1;
command_print(cmd_ctx,
- "unsupported xsvf command: 0x%02X in xsvf file at offset %jd, aborting",
- uc, lseek(xsvf_fd, 0, SEEK_CUR)-1 );
+ "unsupported xsvf command (0x%02X) at offset %jd, aborting",
+ uc, (intmax_t)offset);
return ERROR_FAIL;
}