diff options
| author | tb <> | 2018-10-19 04:32:33 +0000 |
|---|---|---|
| committer | tb <> | 2018-10-19 04:32:33 +0000 |
| commit | 977bca551a9561a1abd8ca6c1d16b17fe8ba8e26 (patch) | |
| tree | a6d37b651229c8f1053b77c24c72627af956cb64 | |
| parent | 2248f21cf65ee8d38a3d05c102555690aef1068e (diff) | |
| download | openbsd-977bca551a9561a1abd8ca6c1d16b17fe8ba8e26.tar.gz openbsd-977bca551a9561a1abd8ca6c1d16b17fe8ba8e26.tar.bz2 openbsd-977bca551a9561a1abd8ca6c1d16b17fe8ba8e26.zip | |
truncate long comments in audit summary
Diffstat (limited to '')
| -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") |
