[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] tools/xen-cpuid: Support dash as a bitmap separator
commit 4a55779402404ea75aa4e83cd612ac0563e9e1bc Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Fri Mar 10 18:14:13 2023 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Mon Mar 13 11:26:26 2023 +0000 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@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- 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 868054ab96..361102d8cf 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; } -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |