Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libkern Fix relation in rngtest failure message to m...



details:   https://anonhg.NetBSD.org/src/rev/6619b7712148
branches:  trunk
changeset: 344431:6619b7712148
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Mar 28 15:20:16 2016 +0000

description:
Fix relation in rngtest failure message to match reality.

diffstat:

 sys/lib/libkern/rngtest.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 6d375d9d5bba -r 6619b7712148 sys/lib/libkern/rngtest.c
--- a/sys/lib/libkern/rngtest.c Mon Mar 28 10:35:36 2016 +0000
+++ b/sys/lib/libkern/rngtest.c Mon Mar 28 15:20:16 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rngtest.c,v 1.2 2011/11/25 12:45:00 joerg Exp $ */
+/*     $NetBSD: rngtest.c,v 1.3 2016/03/28 15:20:16 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
 #include <lib/libkern/libkern.h>
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rngtest.c,v 1.2 2011/11/25 12:45:00 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rngtest.c,v 1.3 2016/03/28 15:20:16 riastradh Exp $");
 
 #ifndef _KERNEL
 static inline int
@@ -263,13 +263,13 @@
                for (last = 0; last <= 1; ++last) {
                        if (rc->rt_runs[last][run] <= minrun[run]) {
                                printf("Kernel RNG \"%s\" runs test FAILURE: "
-                                      "too few runs of %d %ds (%d < %d)\n",
+                                      "too few runs of %d %ds (%d <= %d)\n",
                                       rc->rt_name, run, last,
                                       rc->rt_runs[last][run], minrun[run]);
                                ++rc->rt_nerrs;
                        } else if (rc->rt_runs[last][run] >= maxrun[run]) {
                                printf("Kernel RNG \"%s\" runs test FAILURE: "
-                                      "too many runs of %d %ds (%d > %d)\n",
+                                      "too many runs of %d %ds (%d >= %d)\n",
                                       rc->rt_name, run, last,
                                       rc->rt_runs[last][run], maxrun[run]);
                                ++rc->rt_nerrs;



Home | Main Index | Thread Index | Old Index