aboutsummaryrefslogtreecommitdiff
path: root/src/sg_rbuf.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2007-12-27 04:41:53 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2007-12-27 04:41:53 +0000
commit83b6e5355fb25dc0452e77ddbbe8d206342e5e8b (patch)
treee113604b55c64d2a98bb9c8f3dd948cfc4f13739 /src/sg_rbuf.c
parent543c2b8a8987ca2b75d589fde1d235433ff74719 (diff)
downloadsg3_utils-83b6e5355fb25dc0452e77ddbbe8d206342e5e8b.tar.gz
replace %lld and friends with PRI macros, remove archive/pre_configure
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@134 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_rbuf.c')
-rw-r--r--src/sg_rbuf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sg_rbuf.c b/src/sg_rbuf.c
index 07aab0ea..6d3f56be 100644
--- a/src/sg_rbuf.c
+++ b/src/sg_rbuf.c
@@ -11,6 +11,8 @@
#include <string.h>
#include <errno.h>
#include <getopt.h>
+#define __STDC_FORMAT_MACROS 1
+#include <inttypes.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -51,7 +53,7 @@
#endif
-static char * version_str = "4.87 20070714";
+static char * version_str = "4.88 20071226";
static struct option long_options[] = {
{"buffer", 1, 0, 'b'},
@@ -600,7 +602,7 @@ int main(int argc, char * argv[])
}
if (dio_incomplete)
printf(">> direct IO requested but not done\n");
- printf("Read %lld MiB (actual: %lld bytes), buffer size=%d KiB "
+ printf("Read %"PRId64" MiB (actual: %"PRId64" bytes), buffer size=%d KiB "
"(%d bytes)\n", (total_size / (1024 * 1024)),
(int64_t)num * buf_size, buf_size / 1024, buf_size);