diff options
Diffstat (limited to 'kexec/kexec.c')
-rw-r--r-- | kexec/kexec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/kexec.c b/kexec/kexec.c index fd7c8d2b..c5a8dec1 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -1189,7 +1189,8 @@ void cmdline_add_liveupdate(char **base) xen_get_kexec_range(KEXEC_RANGE_MA_LIVEUPDATE, &lu_start, &lu_end); lu_sizeM = (lu_end - lu_start) / (1024 * 1024) + 1; - sprintf(buf, " liveupdate=%luM@0x%lx", lu_sizeM, lu_start); + sprintf(buf, " liveupdate=%lluM@0x%llx", (unsigned long long)lu_sizeM, + (unsigned long long)lu_start); len = strlen(*base) + strlen(buf) + 1; str = xmalloc(len); sprintf(str, "%s%s", *base, buf); |