Use PRId64 instead of %gd to print an int64_t.

This commit is contained in:
Kevin Lo 2013-07-17 00:54:21 +00:00
parent 5655a322c0
commit 1d35db811f

View File

@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
#include <sys/disk.h>
#include <aio.h>
#include <fcntl.h>
#include <inttypes.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
@ -186,7 +187,7 @@ main(int argc, char *argv[])
perror("unknown file type\n");
exit(1);
}
printf("File: %s; File size %qd bytes\n", fn, file_size);
printf("File: %s; File size %"PRId64" bytes\n", fn, file_size);
aio = calloc(aio_len, sizeof(struct aiocb));
abuf = calloc(aio_len, sizeof(char *));