From 77f800f7d1369066cc202768be42c85b07c9f78d Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 19 Oct 2018 04:32:33 +0000 Subject: truncate long comments in audit summary --- src/regress/lib/libcrypto/wycheproof/wycheproof.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index 318abf9806..16b38331ac 100644 --- a/src/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/src/regress/lib/libcrypto/wycheproof/wycheproof.go @@ -1,4 +1,4 @@ -/* $OpenBSD: wycheproof.go,v 1.83 2018/10/18 21:34:06 tb Exp $ */ +/* $OpenBSD: wycheproof.go,v 1.84 2018/10/19 04:32:33 tb Exp $ */ /* * Copyright (c) 2018 Joel Sing * Copyright (c) 2018 Theo Buehler @@ -360,7 +360,12 @@ func printAcceptableStatistics() { } sort.Strings(comments) for _, comment := range comments { - fmt.Printf("%-45v %5d\n", comment, acceptableComments[comment]) + prcomment := comment + if len(comment) > 42 { + prcomment = comment[0:42] + prcomment += "..." + } + fmt.Printf("%-45v %5d\n", prcomment, acceptableComments[comment]) } fmt.Printf("\nFlag statistics:\n") -- cgit v1.2.3-55-g6feb