From: Olaf Hering Date: Fri, 15 Feb 2013 13:32:12 +0000 (+0000) Subject: tools/xc: turn XCFLAGS_* into shifts X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7278 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9ddc1a73fb003b709ffefc593d8d9b43b88aac0b;p=xen.git tools/xc: turn XCFLAGS_* into shifts to make it clear that these are bits and to make it easier to use in xend code. Signed-off-by: Olaf Hering Acked-by: Ian Campbell Committed-by: Ian Campbell --- diff --git a/tools/libxc/xenguest.h b/tools/libxc/xenguest.h index 1597e5c93c..6ec1071610 100644 --- a/tools/libxc/xenguest.h +++ b/tools/libxc/xenguest.h @@ -23,11 +23,12 @@ #ifndef XENGUEST_H #define XENGUEST_H -#define XCFLAGS_LIVE 1 -#define XCFLAGS_DEBUG 2 -#define XCFLAGS_HVM 4 -#define XCFLAGS_STDVGA 8 -#define XCFLAGS_CHECKPOINT_COMPRESS 16 +#define XCFLAGS_LIVE (1 << 0) +#define XCFLAGS_DEBUG (1 << 1) +#define XCFLAGS_HVM (1 << 2) +#define XCFLAGS_STDVGA (1 << 3) +#define XCFLAGS_CHECKPOINT_COMPRESS (1 << 4) + #define X86_64_B_SIZE 64 #define X86_32_B_SIZE 32