diff options
author | Olaf Hering <olaf@aepfle.de> | 2012-06-01 12:06:22 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2012-06-01 12:06:22 +0100 |
commit | bff8880f2271ad07e24896db500ab9aa5a8c3c02 (patch) | |
tree | b504ec4d5f73b5fbace8e39c77a80f1506023ae9 /tools/libxl/libxl_cpuid.c | |
parent | b48dc18487600a1d98998188896d1d462ba2bcb0 (diff) | |
download | xen-bff8880f2271ad07e24896db500ab9aa5a8c3c02.tar.gz xen-bff8880f2271ad07e24896db500ab9aa5a8c3c02.tar.bz2 xen-bff8880f2271ad07e24896db500ab9aa5a8c3c02.zip |
libxl: fix typos in libxl_cpuid_parse_config
Fix typo in comment.
Fix cpuid_flags array init, use correct number of arguments for empty
array entry.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_cpuid.c')
-rw-r--r-- | tools/libxl/libxl_cpuid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxl/libxl_cpuid.c b/tools/libxl/libxl_cpuid.c index ff7531f0cc..d17fdd670a 100644 --- a/tools/libxl/libxl_cpuid.c +++ b/tools/libxl/libxl_cpuid.c @@ -185,7 +185,7 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) {"svm_decode", 0x8000000a, NA, CPUID_REG_EDX, 7, 1}, {"svm_pausefilt",0x8000000a, NA, CPUID_REG_EDX, 10, 1}, - {NULL, 0, CPUID_REG_INV, 0, 0} + {NULL, 0, NA, CPUID_REG_INV, 0, 0} }; #undef NA char *sep, *val, *endptr; @@ -216,7 +216,7 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) num = strtoull(val, &endptr, 0); flags[flag->length] = 0; if (endptr != val) { - /* is this was a valid number, write the binary form into the string */ + /* if this was a valid number, write the binary form into the string */ for (i = 0; i < flag->length; i++) { flags[flag->length - 1 - i] = "01"[!!(num & (1 << i))]; } |