mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
tools/xen-cpuid: Support dash as a bitmap separator
Xapi chose to render its featureset bitmaps with dashes rather than colons as a separator. Have xen-cpuid support both forms, for convenience. Fix a trivial style issue in the vicinity while here. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
d04ae78c34
commit
4a55779402
1 file changed
+3
-2
@@ -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;
|
||||
}
|
||||
|
||||