Let's cast it to the longest type which works on 32bit and 64bit.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
static void nvme_show_latency(struct timeval start, struct timeval end)
{
- printf("latency : %lu us\n",
- (end.tv_sec - start.tv_sec) * 1000000 + (end.tv_usec - start.tv_usec));
+ printf("latency : %llu us\n",
+ (unsigned long long)((end.tv_sec - start.tv_sec) * 1000000 +
+ (end.tv_usec - start.tv_usec)));
}
int nvme_submit_passthru(int fd, unsigned long ioctl_cmd,