mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-29 20:54:03 +00:00
a2a002f91b
Make the MIN_RAM_SIZE_MB constant 64-bit on 32-bit systems as well, otherwise we get this build failure: kvm-run.c: In function ‘kvm_cmd_run’: kvm-run.c:119: error: format ‘%lu’ expects type ‘long unsigned int’, but argument 2 has type ‘u64’ Also adjust affected printf format string - this necessiates the use of the sane Linux definition of u64 instead of the brain-dead int64_t variant. That also allows (and necessiates) the removal of the ugly PRIu64 format string hackery. Friends don't let friends use PRI* hackeries! :-) Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Pekka Enberg <penberg@kernel.org>
31 lines
447 B
C
31 lines
447 B
C
#ifndef LINUX_TYPES_H
|
|
#define LINUX_TYPES_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define __s8 int8_t
|
|
#define __u8 uint8_t
|
|
|
|
#define __s16 int16_t
|
|
#define __u16 uint16_t
|
|
|
|
#define __s32 int32_t
|
|
#define __u32 uint32_t
|
|
|
|
#define __s64 long long
|
|
#define __u64 unsigned long long
|
|
|
|
typedef __u64 u64;
|
|
typedef __s64 s64;
|
|
|
|
typedef __u32 u32;
|
|
typedef __s32 s32;
|
|
|
|
typedef __u16 u16;
|
|
typedef __s16 s16;
|
|
|
|
typedef __u8 u8;
|
|
typedef __s8 s8;
|
|
|
|
#endif /* LINUX_TYPES_H */
|