Make err_data_generator.go silent by default.
I don't think I ever look at that output. This way our builds are nice and silent. Change-Id: Idb215e3702f530a8b8661622c726093530885c91 Reviewed-on: https://boringssl-review.googlesource.com/7700 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
26993ad55e
commit
56703d91bf
@ -18,6 +18,7 @@ import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
@ -26,6 +27,8 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
var verbose = flag.Bool("verbose", false, "If true, prints a status message at the end.")
|
||||
|
||||
// libraryNames must be kept in sync with the enum in err.h. The generated code
|
||||
// will contain static assertions to enforce this.
|
||||
var libraryNames = []string{
|
||||
@ -138,7 +141,9 @@ type stringWriter interface {
|
||||
|
||||
func (st *stringList) WriteTo(out stringWriter, name string) {
|
||||
list := st.buildList()
|
||||
fmt.Fprintf(os.Stderr, "%s: %d bytes of list and %d bytes of string data.\n", name, 4*len(list), len(st.stringData))
|
||||
if *verbose {
|
||||
fmt.Fprintf(os.Stderr, "%s: %d bytes of list and %d bytes of string data.\n", name, 4*len(list), len(st.stringData))
|
||||
}
|
||||
|
||||
values := "kOpenSSL" + name + "Values"
|
||||
out.WriteString("const uint32_t " + values + "[] = {\n")
|
||||
@ -215,6 +220,8 @@ func (e *errorData) readErrorDataFile(filename string) error {
|
||||
}
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
e := &errorData{
|
||||
reasons: newStringList(),
|
||||
libraryMap: make(map[string]uint32),
|
||||
|
Loading…
Reference in New Issue
Block a user