]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: add warning for __SANITIZE_ADDRESS__
authorKarel Zak <kzak@redhat.com>
Tue, 2 Jun 2015 12:52:56 +0000 (14:52 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Jun 2015 12:55:52 +0000 (14:55 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c

index f695a320ded7b20b37c95091397f2a8ceb5d9079..1f8f5f19804a41e2d8fd4b15d2bc49b8834f6562 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#if (defined(__x86_64__) || defined(__i386__)) && !defined(__SANITIZE_ADDRESS__)
-# define INCLUDE_VMWARE_BDOOR
+#if (defined(__x86_64__) || defined(__i386__))
+# if !defined( __SANITIZE_ADDRESS__)
+#  define INCLUDE_VMWARE_BDOOR
+# else
+#  warning VMWARE detection disabled by __SANITIZE_ADDRESS__
+# endif
 #endif
 
 #ifdef INCLUDE_VMWARE_BDOOR