From: Sasha Levin Date: Fri, 22 Jul 2011 13:21:19 +0000 (+0300) Subject: kvm tools: Fix warning on 32bit X-Git-Tag: next-20110824~3^2~85 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0da4c7bb04d5204af60e1aa30c8f165964a9ea76;p=karo-tx-linux.git kvm tools: Fix warning on 32bit Signed-off-by: Sasha Levin Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/disk/core.c b/tools/kvm/disk/core.c index b488888b5b82..46926fe1a807 100644 --- a/tools/kvm/disk/core.c +++ b/tools/kvm/disk/core.c @@ -215,6 +215,6 @@ ssize_t disk_image__get_serial(struct disk_image *disk, void *buffer, ssize_t *l if (fstat(disk->fd, &st) != 0) return 0; - *len = snprintf(buffer, *len, "%lu%lu%lu", st.st_dev, st.st_rdev, st.st_ino); + *len = snprintf(buffer, *len, "%llu%llu%llu", (u64)st.st_dev, (u64)st.st_rdev, (u64)st.st_ino); return *len; } \ No newline at end of file