|
From: <zw...@ma...> - 2009-05-23 03:25:43
|
Author: zwelch
Date: 2009-05-23 03:25:39 +0200 (Sat, 23 May 2009)
New Revision: 1888
Modified:
trunk/src/xsvf/xsvf.c
Log:
More printf fixes stemming from format string change in r1882.
Modified: trunk/src/xsvf/xsvf.c
===================================================================
--- trunk/src/xsvf/xsvf.c 2009-05-23 00:51:13 UTC (rev 1887)
+++ trunk/src/xsvf/xsvf.c 2009-05-23 01:25:39 UTC (rev 1888)
@@ -1020,9 +1020,10 @@
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;
}
|