Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/build/soong/apex/
Dandroidmk.go61 panic(fmt.Errorf("unknown class %d", class))
112 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS) # apex.apexBundle.files")
114 fmt.Fprintln(w, "LOCAL_PATH :=", fi.moduleDir)
116 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir)
118 fmt.Fprintln(w, "LOCAL_MODULE :=", moduleName)
121 fmt.Fprintln(w, "LOCAL_MODULE_OWNER :=", fi.module.Owner())
126 fmt.Fprintln(w, "LOCAL_MODULE_PATH :=", modulePath)
135 fmt.Fprintln(w, "LOCAL_NO_NOTICE_FILE := true")
136 fmt.Fprintln(w, "LOCAL_SOONG_INSTALLED_MODULE :=", filepath.Join(modulePath, fi.stem()))
137fmt.Fprintln(w, "LOCAL_SOONG_INSTALL_PAIRS :=", fi.builtFile.String()+":"+filepath.Join(modulePath…
[all …]
/build/soong/cmd/extract_linker/
Dmain.go56 fmt.Fprintln(asm, ".globl __dlwrap_linker_offset")
57 fmt.Fprintf(asm, ".set __dlwrap_linker_offset, 0x%x\n", baseLoadAddr)
59 fmt.Fprintln(script, "ENTRY(__dlwrap__start)")
60 fmt.Fprintln(script, "SECTIONS {")
80 fmt.Fprintf(asm, ".section %s, \"a%s\"\n", sectionName, flags)
83 fmt.Fprintln(asm, ".globl __dlwrap_linker")
84 fmt.Fprintln(asm, "__dlwrap_linker:")
85 fmt.Fprintln(asm)
88 fmt.Fprintf(asm, ".globl %s\n%s:\n\n", symName, symName)
90 fmt.Fprintf(script, " %s 0x%x : {\n", sectionName, baseLoadAddr+prog.Vaddr)
[all …]
/build/make/tools/compliance/cmd/htmlnotice/
Dhtmlnotice.go37 failNoneRequested = fmt.Errorf("\nNo license metadata files requested")
38 failNoLicenses = fmt.Errorf("No licenses found")
87 fmt.Fprintln(os.Stderr, err.Error())
94 fmt.Fprintln(os.Stderr, err.Error())
106 fmt.Fprintf(os.Stderr, `Usage: %s {options} file.meta_lic {file.meta_lic...}
133 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
138 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
143 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
147 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
174 fmt.Fprintf(os.Stderr, "%s\n", err.Error())
[all …]
/build/soong/symbol_inject/
Dpe.go82 fmt.Println("&pe.File{")
83 fmt.Println("\tFileHeader: pe.FileHeader{")
84 fmt.Printf("\t\tMachine: %#v,\n", peFile.FileHeader.Machine)
85 fmt.Println("\t},")
87 fmt.Println("\tSections: []*pe.Section{")
89 fmt.Printf("\t\t&pe.Section{SectionHeader: %#v},\n", section.SectionHeader)
91 fmt.Println("\t},")
93 fmt.Println("\tSymbols: []*pe.Symbol{")
95 fmt.Printf("\t\t%#v,\n", symbol)
97 fmt.Println("\t},")
[all …]
Delf.go93 return nil, fmt.Errorf("invalid section index %d", symbol.Section)
110 return nil, fmt.Errorf("symbol starts before the start of its section")
114 return nil, fmt.Errorf("symbol extends past the end of its section")
117 return nil, fmt.Errorf("unsupported elf file type %d", elfFile.Type())
142 fmt.Println("mockElfFile{")
143 fmt.Printf("\tt: %#v,\n", elfFile.Type)
145 fmt.Println("\tsections: []elf.SectionHeader{")
147 fmt.Printf("\t\t%#v,\n", section.SectionHeader)
149 fmt.Println("\t},")
151 fmt.Println("\tsymbols: []elf.Symbol{")
[all …]
Dmacho.go82 fmt.Println("&macho.File{")
84 fmt.Println("\tSections: []*macho.Section{")
86 fmt.Printf("\t\t&macho.Section{SectionHeader: %#v},\n", section.SectionHeader)
88 fmt.Println("\t},")
90 fmt.Println("\tSymtab: &macho.Symtab{")
91 fmt.Println("\t\tSyms: []macho.Symbol{")
93 fmt.Printf("\t\t\t%#v,\n", symbol)
95 fmt.Println("\t\t},")
96 fmt.Println("\t},")
98 fmt.Println("}")
[all …]
/build/soong/cmd/merge_module_info_json/
Dmerge_module_info_json.go36 fmt.Fprintf(os.Stderr, "usage: %s -o <output file> <input files>\n", os.Args[0])
38fmt.Fprintln(os.Stderr, "merge_module_info_json reads input files that each contain an array of js…
39 fmt.Fprintln(os.Stderr, "and writes them out as a single json array to the output file.")
49 fmt.Fprintf(os.Stderr, "%s: error: -o is required\n", os.Args[0])
57 fmt.Fprintf(os.Stderr, "failed to read list file %s: %s", *listFile, err)
66 fmt.Fprintf(os.Stderr, "%s: error: %s\n", os.Args[0], err.Error())
99 return fmt.Errorf("failed to open output file: %w", err)
105 return fmt.Errorf("failed to encode to output file: %w", err)
114 return nil, fmt.Errorf("failed to open input file: %w", err)
121 return nil, fmt.Errorf("failed to parse input file %q: %w", input, err)
[all …]
/build/soong/ui/terminal/
Dformat.go45 return fmt.Sprintf("FAILED: %s", message)
47 return fmt.Sprintf("%s%s", level.Prefix(), message)
63 …output := fmt.Sprintf("[%3d%% %d/%d", 100*counts.FinishedActions/counts.TotalActions, counts.Finis…
66 output += fmt.Sprintf(" %s remaining", remainingTimeString(counts.EstimatedTime))
91 fmt.Fprintf(buf, "%d", counts.StartedActions)
93 fmt.Fprintf(buf, "%d", counts.TotalActions)
95 fmt.Fprintf(buf, "%d", counts.RunningActions)
97 fmt.Fprintf(buf, "%d", counts.TotalActions-counts.StartedActions)
99 fmt.Fprintf(buf, "%d", counts.FinishedActions)
101 fmt.Fprintf(buf, "%.1f", float64(counts.FinishedActions)/time.Since(s.start).Seconds())
[all …]
/build/make/tools/compliance/cmd/shippedlibs/
Dshippedlibs.go32 failNoneRequested = fmt.Errorf("\nNo license metadata files requested")
33 failNoLicenses = fmt.Errorf("No licenses found")
48 fmt.Fprintln(os.Stderr, err.Error())
55 fmt.Fprintln(os.Stderr, err.Error())
69 fmt.Fprintf(os.Stderr, `Usage: %s {options} file.meta_lic {file.meta_lic...}
81 fmt.Fprintf(os.Stderr, "%v\n", err)
92 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
97 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
102 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
106 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
[all …]
/build/make/tools/compliance/cmd/xmlnotice/
Dxmlnotice.go37 failNoneRequested = fmt.Errorf("\nNo license metadata files requested")
38 failNoLicenses = fmt.Errorf("No licenses found")
86 fmt.Fprintln(os.Stderr, err.Error())
93 fmt.Fprintln(os.Stderr, err.Error())
105 fmt.Fprintf(os.Stderr, `Usage: %s {options} file.meta_lic {file.meta_lic...}
131 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
136 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
141 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
145 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
172 fmt.Fprintf(os.Stderr, "%s\n", err.Error())
[all …]
/build/soong/makedeps/
Ddeps.go38 return nil, fmt.Errorf("many errors: %v", errs)
53 return nil, fmt.Errorf("%sunexpected recipe in rule: %v", pos(node), x)
57 return nil, fmt.Errorf("%sunsupported variable expansion: %v", pos(node), x.Target.Dump())
68 … return nil, fmt.Errorf("%sunsupported variable expansion: %v", pos(node), x.Prerequisites.Dump())
74 return nil, fmt.Errorf("%sunexpected line: %#v", pos(node), node)
91 fmt.Fprintf(b, "%s:", replacer.Replace(d.Output))
93 fmt.Fprintf(b, " %s", replacer.Replace(input))
95 fmt.Fprintln(b)
/build/soong/compliance/copy_license_metadata/
Dcopy_license_metadata.go48 fmt.Fprintln(os.Stderr, err.Error())
55 fmt.Fprintln(os.Stderr, err.Error())
76 fmt.Fprintf(os.Stderr, "source license metadata (-d flag) required\n")
79 fmt.Fprintf(os.Stderr, "source copy (-s flag required\n")
82 fmt.Fprintf(os.Stderr, "installed copy (-i flag) required\n")
90 fmt.Fprintf(os.Stderr, "error: %s\n", err.Error())
106 fmt.Fprintf(os.Stderr, "error: %s\n", err.Error())
113 return fmt.Errorf("source metadata file (-d) required")
117 return fmt.Errorf("error reading textproto %q: %w", file, err)
122 return fmt.Errorf("error unmarshalling textproto: %w", err)
[all …]
/build/soong/cmd/symbols_map/
Dsymbols_map.go42 fmt.Fprintln(os.Stderr, err.Error())
49 fmt.Fprintln(os.Stderr, err.Error())
65 fmt.Fprintf(flags.Output(), "Usage of %s:\n", os.Args[0])
66fmt.Fprintf(flags.Output(), " %s -elf|-r8 <input file> [-write_if_changed] <output file>\n", os.A…
67fmt.Fprintf(flags.Output(), " %s -merge <output file> [-write_if_changed] [-ignore_missing_files]…
68 fmt.Fprintln(flags.Output())
87 fmt.Fprintf(os.Stderr, "failed to merge protos: %s", err)
94 fmt.Fprintf(os.Stderr, "-elf or -r8 argument is required\n")
100 fmt.Fprintf(os.Stderr, "only one of -elf or -r8 argument is allowed\n")
122 fmt.Fprintf(os.Stderr, "error reading elf identifier: %s\n", err)
[all …]
/build/make/tools/compliance/cmd/textnotice/
Dtextnotice.go36 failNoneRequested = fmt.Errorf("\nNo license metadata files requested")
37 failNoLicenses = fmt.Errorf("No licenses found")
85 fmt.Fprintln(os.Stderr, err.Error())
92 fmt.Fprintln(os.Stderr, err.Error())
104 fmt.Fprintf(os.Stderr, `Usage: %s {options} file.meta_lic {file.meta_lic...}
129 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
134 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
139 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
143 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
170 fmt.Fprintf(os.Stderr, "%s\n", err.Error())
[all …]
/build/soong/cmd/run_with_timeout/
Drun_with_timeout.go37fmt.Fprintf(os.Stderr, "usage: %s [--timeout N] [--on_timeout CMD] -- command [args...]\n", os.Arg…
39fmt.Fprintln(os.Stderr, "run_with_timeout is a utility that can kill a wrapped command after a con…
40 fmt.Fprintln(os.Stderr, "optionally running a command to collect debugging information first.")
50 fmt.Fprintf(os.Stderr, "%s: error: command is required\n", os.Args[0])
58 fmt.Fprintf(os.Stderr, "%s: process exited with error: %s\n", os.Args[0], exitErr.Error())
60 fmt.Fprintf(os.Stderr, "%s: error: %s\n", os.Args[0], err.Error())
123 return fmt.Errorf("process exited with error: %w", exitErr)
130fmt.Fprintf(concurrentStderr, "%s: process timed out after %s\n", os.Args[0], time.Since(startTime…
135fmt.Fprintf(concurrentStderr, "%s: running on_timeout command `%s`\n", os.Args[0], onTimeoutCmdStr)
138 onTimeoutCmd.Env = append(os.Environ(), fmt.Sprintf("PID=%d", cmd.Process.Pid))
[all …]
/build/make/tools/compliance/cmd/checkmetadata/
Dcheckmetadata.go33 failNoneRequested = fmt.Errorf("\nNo projects requested")
42 fmt.Fprintln(os.Stderr, err.Error())
49 fmt.Fprintln(os.Stderr, err.Error())
61 fmt.Fprintf(os.Stderr, `Usage: %s {-o outfile} projectdir {projectdir...}
86 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
91 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
96 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
100 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
118 fmt.Fprintf(os.Stderr, "%s\n", err.Error())
119 fmt.Fprintln(ofile, "FAIL")
[all …]
/build/soong/ui/build/
Drbe.go73 vars["RBE_server_address"] = fmt.Sprintf("unix://%v", name)
80 vars["RBE_local_resource_fraction"] = fmt.Sprintf("%.2f", rf)
94 fmt.Fprintln(ctx.Writer, "\033[33mUnable to remove RBE log directory: ", err, "\033[0m")
137 fmt.Fprintln(ctx.Writer, "")
138 fmt.Fprintln(ctx.Writer, fmt.Sprintf("%s", output))
157 fmt.Fprintln(ctx.Writer, "")
158fmt.Fprintln(ctx.Writer, fmt.Sprintf("\033[33mWARNING: %q binary not found in $PATH, follow go/bui…
159 fmt.Fprintln(ctx.Writer, "")
206 fmt.Fprintln(ctx.Writer, "")
207 fmt.Fprintln(ctx.Writer, "\033[33mWARNING:\033[0m")
[all …]
/build/soong/mk2rbc/mk2rbc/
Dmk2rbc.go86 fmt.Fprintf(flag.CommandLine.Output(),
161 fmt.Println(p, productConfigMap[p])
181 quit(fmt.Errorf("a launcher can be generated only for a single product"))
184 quit(fmt.Errorf("the product launcher requires an input variables file"))
187 quit(fmt.Errorf("the product launcher input variables file failed to convert"))
193 fmt.Fprintf(os.Stderr, "%s: %s", files[0], err)
199 quit(fmt.Errorf("a launcher can be generated only for a single product"))
202 quit(fmt.Errorf("the board launcher requires an input variables file"))
205 quit(fmt.Errorf("the board launcher input variables file failed to convert"))
210 fmt.Fprintf(os.Stderr, "%s: %s", files[0], err)
[all …]
/build/soong/cmd/soong_ui/
Dmain.go115 return fmt.Errorf("Failed to remove %s\nError message: %w", metricsFilePath, err)
134 fmt.Fprintf(os.Stderr, "Error parsing `soong` args: %s.\n", err)
308 fmt.Fprintf(ctx.Writer, "usage: %s --dumpvar-mode [--abs] <VAR>\n\n", os.Args[0])
309fmt.Fprintln(ctx.Writer, "In dumpvar mode, print the value of the legacy make variable VAR to stdo…
310 fmt.Fprintln(ctx.Writer, "")
312fmt.Fprintln(ctx.Writer, "'report_config' is a special case that prints the human-readable config …
313 fmt.Fprintln(ctx.Writer, "from the beginning of the build.")
314 fmt.Fprintln(ctx.Writer, "")
332 fmt.Println(build.Banner(varData))
348 fmt.Println(strings.Join(res, " "))
[all …]
/build/make/tools/rbcrun/rbcrun/
Drbcrun.go73 return "", fmt.Errorf("starlark strings exported to make cannot contain backslashes or newlines")
90 …return "", fmt.Errorf("nested lists are not allowed to be exported from starlark to make, flatten …
105 …return "", fmt.Errorf("only starlark strings, ints, and lists of strings/ints can be exported to m…
116 …return fmt.Errorf("expected top-level starlark file to have a \"variables_to_export_to_make\" vari…
120 …return fmt.Errorf("expected variables_to_export_to_make to be a dict, got %s", variablesValue.Type…
126 …return fmt.Errorf("all keys in variables_to_export_to_make must be strings, but got %q", varTuple.…
130 …return fmt.Errorf("all variables at the top level starlark file must be valid c identifiers, but g…
133 …return fmt.Errorf("the name LOADED_STARLARK_FILES is reserved for use by the starlark interpreter")
140 fmt.Printf("%s :=$= %s\n", varName, valueMake)
167 fmt.Fprintln(os.Stderr, err2)
[all …]
/build/soong/cmd/diff_target_files/
Ddiff_target_files.go46 fmt.Fprintf(os.Stderr, "Error, exactly two arguments are required\n")
52 fmt.Fprintf(os.Stderr, "Error parsing allowlists: %v\n", err)
58 fmt.Fprintf(os.Stderr, "Error opening zip file %v: %v\n", flag.Arg(0), err)
65 fmt.Fprintf(os.Stderr, "Error opening zip file %v: %v\n", flag.Arg(1), err)
72 fmt.Fprintf(os.Stderr, "Error comparing zip files: %v\n", err)
76 fmt.Print(diff.String())
79 fmt.Fprintln(os.Stderr, "differences found")
/build/soong/phony/
Dphony.go60 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)", " # phony.phony")
61 fmt.Fprintln(w, "LOCAL_PATH :=", moduleDir)
62 fmt.Fprintln(w, "LOCAL_MODULE :=", name)
64 fmt.Fprintln(w, "LOCAL_IS_HOST_MODULE := true")
67 fmt.Fprintln(w, "LOCAL_REQUIRED_MODULES :=",
71 fmt.Fprintln(w, "LOCAL_HOST_REQUIRED_MODULES :=",
75 fmt.Fprintln(w, "LOCAL_TARGET_REQUIRED_MODULES :=",
82 fmt.Fprintln(w, "include $(BUILD_PHONY_PACKAGE)")
119 fmt.Fprintln(w, ".PHONY:", name)
120 fmt.Fprintln(w, name, ":", depModulesStr)
/build/make/tools/compliance/cmd/dumpgraph/
Ddumpgraph.go33 failNoneRequested = fmt.Errorf("\nNo license metadata files requested")
34 failNoLicenses = fmt.Errorf("No licenses found")
75 fmt.Fprintln(os.Stderr, err.Error())
82 fmt.Fprintln(os.Stderr, err.Error())
94 fmt.Fprintf(os.Stderr, `Usage: %s {options} file.meta_lic {file.meta_lic...}
125 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
130 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
135 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
139 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
159 fmt.Fprintf(os.Stderr, "%s\n", err.Error())
[all …]
/build/make/tools/compliance/cmd/bom/
Dbom.go32 failNoneRequested = fmt.Errorf("\nNo license metadata files requested")
33 failNoLicenses = fmt.Errorf("No licenses found")
75 fmt.Fprintln(os.Stderr, err.Error())
82 fmt.Fprintln(os.Stderr, err.Error())
94 fmt.Fprintf(os.Stderr, `Usage: %s {options} file.meta_lic {file.meta_lic...}
116 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
121 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
126 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
130 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
148 fmt.Fprintf(os.Stderr, "%s\n", err.Error())
[all …]
/build/make/tools/compliance/cmd/checkshare/
Dcheckshare.go33 failConflicts = fmt.Errorf("conflicts")
34 failNoneRequested = fmt.Errorf("\nNo metadata files requested")
35 failNoLicenses = fmt.Errorf("No licenses")
51 fmt.Fprintln(os.Stderr, err.Error())
58 fmt.Fprintln(os.Stderr, err.Error())
70 fmt.Fprintf(os.Stderr, `Usage: %s {-o outfile} file.meta_lic {file.meta_lic...}
101 fmt.Fprintf(os.Stderr, "must specify file for -o; use - for stdout\n")
106 fmt.Fprintf(os.Stderr, "cannot determine path to %q: %s\n", *outputFile, err)
111 fmt.Fprintf(os.Stderr, "cannot read directory %q of %q: %s\n", dir, *outputFile, err)
115 fmt.Fprintf(os.Stderr, "parent %q of %q is not a directory\n", dir, *outputFile)
[all …]

12345678910>>...18