diff options
author | tb <> | 2018-10-19 04:32:33 +0000 |
---|---|---|
committer | tb <> | 2018-10-19 04:32:33 +0000 |
commit | 77f800f7d1369066cc202768be42c85b07c9f78d (patch) | |
tree | a6d37b651229c8f1053b77c24c72627af956cb64 /src | |
parent | 3fd248eff3955857bb62a4047fd7b6c5eec19f4d (diff) | |
download | openbsd-77f800f7d1369066cc202768be42c85b07c9f78d.tar.gz openbsd-77f800f7d1369066cc202768be42c85b07c9f78d.tar.bz2 openbsd-77f800f7d1369066cc202768be42c85b07c9f78d.zip |
truncate long comments in audit summary
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 9 |
1 files changed, 7 insertions, 2 deletions
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 @@ | |||
1 | /* $OpenBSD: wycheproof.go,v 1.83 2018/10/18 21:34:06 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.84 2018/10/19 04:32:33 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
@@ -360,7 +360,12 @@ func printAcceptableStatistics() { | |||
360 | } | 360 | } |
361 | sort.Strings(comments) | 361 | sort.Strings(comments) |
362 | for _, comment := range comments { | 362 | for _, comment := range comments { |
363 | fmt.Printf("%-45v %5d\n", comment, acceptableComments[comment]) | 363 | prcomment := comment |
364 | if len(comment) > 42 { | ||
365 | prcomment = comment[0:42] | ||
366 | prcomment += "..." | ||
367 | } | ||
368 | fmt.Printf("%-45v %5d\n", prcomment, acceptableComments[comment]) | ||
364 | } | 369 | } |
365 | 370 | ||
366 | fmt.Printf("\nFlag statistics:\n") | 371 | fmt.Printf("\nFlag statistics:\n") |