Xapi chose to render its featureset bitmaps with dashes rather than colongs as
a separator. Have xen-cpuid support both forms, for convenience.
Fix a trivial style issue in the vacinity while here.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Wei Liu <wl@xen.org>
CC: Anthony PERARD <anthony.perard@citrix.com>
---
tools/misc/xen-cpuid.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/misc/xen-cpuid.c b/tools/misc/xen-cpuid.c
index 868054ab96a6..361102d8cfb1 100644
--- a/tools/misc/xen-cpuid.c
+++ b/tools/misc/xen-cpuid.c
@@ -607,9 +607,10 @@ int main(int argc, char **argv)
if ( i == nr_features )
break;
- if ( *ptr == ':' )
+ if ( *ptr == ':' || *ptr == '-' )
{
- ptr++; continue;
+ ptr++;
+ continue;
}
break;
}
--
2.30.2