Module Name: src Committed By: christos Date: Thu Apr 9 02:07:01 UTC 2020
Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: flip the comparison again To generate a diff of this commit: cvs rdiff -u -r1.104 -r1.105 src/sys/arch/x86/x86/identcpu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/x86/x86/identcpu.c diff -u src/sys/arch/x86/x86/identcpu.c:1.104 src/sys/arch/x86/x86/identcpu.c:1.105 --- src/sys/arch/x86/x86/identcpu.c:1.104 Wed Apr 8 21:55:58 2020 +++ src/sys/arch/x86/x86/identcpu.c Wed Apr 8 22:07:01 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: identcpu.c,v 1.104 2020/04/09 01:55:58 christos Exp $ */ +/* $NetBSD: identcpu.c,v 1.105 2020/04/09 02:07:01 christos Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.104 2020/04/09 01:55:58 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.105 2020/04/09 02:07:01 christos Exp $"); #include "opt_xen.h" @@ -750,7 +750,7 @@ cpu_probe_vortex86(struct cpu_info *ci) static const char *cpu_vortex86_flavor[] = { "??", "SX", "DX", "MX", "DX2", "MX+", "DX3", "EX", "EX2", }; - idx = __arraycount(cpu_vortex86_flavor) < idx ? idx : 0; + idx = idx < __arraycount(cpu_vortex86_flavor) ? idx : 0; snprintf(cpu_brand_string, sizeof(cpu_brand_string), "Vortex86%s", cpu_vortex86_flavor[idx]);