Home
last modified time | relevance | path

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

1234

/build/kati/testcase/
Dparse_benchcmp.go71 fmt.Fprintln(os.Stderr, "benchcmp not found:", err)
72 fmt.Fprintln(os.Stderr, "install it by:")
73 fmt.Fprintln(os.Stderr, " export GOPATH=$HOME # if not set")
74 fmt.Fprintln(os.Stderr, " PATH=$PATH:$GOPATH/bin")
75 fmt.Fprintln(os.Stderr, " go get -u golang.org/x/tools/cmd/benchcmp")
80 fmt.Fprintln(os.Stderr, "workspace is dirty. please commit.")
81 fmt.Fprintln(os.Stderr, status)
86 fmt.Fprintln(os.Stderr, "current branch is master.")
87 fmt.Fprintln(os.Stderr, "run in branch to compare with master.")
90 fmt.Println("Run benchmark on master and ", curBranch)
[all …]
/build/kati/
Dquery.go28 fmt.Fprintf(w, "%*c%s (%d)\n", indent, ' ', n.Output, id)
36 fmt.Fprintf(w, "%*corder_onlys:\n", indent, ' ')
44 fmt.Fprintf(w, "%s:", n.Output)
46 fmt.Fprintf(w, " %s", i)
48 fmt.Fprintf(w, "\n")
50 fmt.Fprintf(w, "\t%s\n", c)
53 fmt.Fprintf(w, "%s: %s=%s\n", n.Output, k, v.String())
56 fmt.Fprintf(w, "\n")
57 fmt.Fprintf(w, "location: %s:%d\n", n.Filename, n.Lineno)
59 fmt.Fprintf(w, "phony: true\n")
[all …]
Dninja.go57 return fmt.Sprintf("node-unknown[%d]", int(s))
100 return "", fmt.Errorf("Multiple output file candidates in %s", ss)
112 return "", fmt.Errorf("Cannot find the depfile in %s", ss)
116 return "", fmt.Errorf("Multiple output file candidates in %s", ss)
143 return cmdline, "", fmt.Errorf("unbalanced parenthes? %s", cmdline)
155 return cmdline, "", fmt.Errorf("cannot find removal of .d file: %s", cmdline)
167 cmdline += fmt.Sprintf(" && cp %s %s.tmp", depfile, depfile)
327 cmd = fmt.Sprintf("%s/gomacc %s", n.GomaDir, rcmd)
361 ruleName := fmt.Sprintf("rule%d", n.ruleID)
367 fmt.Fprintf(n.f, "build %s: %s", escapeBuildTarget(output), rule)
[all …]
Dlog.go32 f = fmt.Sprintf("%s: warning: %s\n", loc, f)
33 fmt.Printf(f, a...)
37 f = fmt.Sprintf("%s: %s\n", loc, f)
38 fmt.Printf(f, a...)
Devalcmd.go87 return nil, fmt.Errorf("cannot append to autovar")
90 return nil, fmt.Errorf("cannot append to autovar")
96 d.err = fmt.Errorf("cannot dump auto var: %v", v)
102 fmt.Fprint(w, v.String())
110 fmt.Fprint(w, v.String())
123 fmt.Fprint(w, v.String())
133 fmt.Fprint(w, v.String())
141 fmt.Fprint(w, v.String())
268 fmt.Printf("%s\n", r.cmd)
281 fmt.Printf("%s", out)
[all …]
Dstats.go53 fmt.Fprint(t.f, "[ ")
61 fmt.Fprint(t.f, "\n]\n")
96 fmt.Fprintf(t.f, ",\n")
98 fmt.Fprintf(t.f, `{"pid":%d,"tid":%d,"ts":%d,"ph":%q,"cat":%q,"name":%q,"args":{}}`,
138 key := fmt.Sprintf("%s:%s", name, v)
161 fmt.Println("count,longest(ns),total(ns),longest,total,name")
163 fmt.Printf("%d,%d,%d,%v,%v,%s\n", s.Count, s.Longest, s.Total, s.Longest, s.Total, s.Name)
Dserialize.go359 return fmt.Errorf("no Makefile is read")
376 return nil, fmt.Errorf("unexpected number of children: %q", sv)
436 return nil, fmt.Errorf("func name is not literal %s: %T", dv, dv)
483 return nil, fmt.Errorf("not var: target specific var %s %T", dv, dv)
491 return nil, fmt.Errorf("unknown serialized variable type: %q", sv)
504 return nil, fmt.Errorf("not var: %s: %T", dv, dv)
524 return nil, fmt.Errorf("not var: %s %T", dv, dv)
561 return nil, fmt.Errorf("unknown target: %d (%s)", o, targets[o])
568 return nil, fmt.Errorf("unknown target: %d (%s)", o, targets[o])
575 return nil, fmt.Errorf("unknown target: %d (%s)", o, targets[o])
[all …]
/build/blueprint/
Dunpack.go67 Err: fmt.Errorf("unrecognized property %q", name),
93 Err: fmt.Errorf("property %q already defined", name),
97 Err: fmt.Errorf("<-- previous definition here"),
140 panic(fmt.Errorf("field %s is not settable", propertyName))
151 panic(fmt.Errorf("field %s is a non-string slice", propertyName))
155 panic(fmt.Errorf("field %s contains a nil interface", propertyName))
160 panic(fmt.Errorf("field %s contains a non-pointer interface", propertyName))
167 panic(fmt.Errorf("field %s contains a nil pointer", propertyName))
173 panic(fmt.Errorf("field %s contains a pointer to %s", propertyName, ptrKind))
178 panic(fmt.Errorf(`int field %s must be tagged blueprint:"mutated"`, propertyName))
[all …]
Dninja_defs.go44 panic(fmt.Sprintf("unknown deps value: %d", d))
142 return nil, fmt.Errorf("encountered rule params with no command " +
147 return nil, fmt.Errorf("Pool %s is not visible in this scope", r.Pool)
152 return nil, fmt.Errorf("error parsing Command param: %s", err)
159 return nil, fmt.Errorf("error parsing Depfile param: %s", err)
171 return nil, fmt.Errorf("error parsing Description param: %s", err)
187 return nil, fmt.Errorf("error parsing Rspfile param: %s", err)
195 return nil, fmt.Errorf("error parsing RspfileContent param: %s",
203 return nil, fmt.Errorf("error parsing CommandDeps param: %s", err)
272 return nil, fmt.Errorf("Rule %s is not visible in this scope", rule)
[all …]
Dscope.go108 return nil, fmt.Errorf("variable name %q ends with a '.'", name)
111 return nil, fmt.Errorf("variable name %q contains multiple '.' "+
120 return nil, fmt.Errorf("cannot refer to unexported name %q", name)
130 return nil, fmt.Errorf("package %q does not contain variable %q",
143 return nil, fmt.Errorf("undefined variable %q", name)
204 return nil, fmt.Errorf("unknown imported package %q (missing call to "+
211 return fmt.Errorf("import %q is already defined in this scope", name)
221 return fmt.Errorf("variable %q is already defined in this scope", name)
231 return fmt.Errorf("pool %q is already defined in this scope", name)
241 return fmt.Errorf("rule %q is already defined in this scope", name)
[all …]
Dninja_strings.go151 return nil, fmt.Errorf("unexpected end of string after '$'")
156 return nil, fmt.Errorf("invalid character after '$' at byte "+
220 return nil, fmt.Errorf("empty variable name at byte offset %d",
235 return nil, fmt.Errorf("unexpected end of string in variable name")
239 return nil, fmt.Errorf("invalid character in variable name at "+
254 return nil, fmt.Errorf("error parsing element %d: %s", i, err)
281 return "", fmt.Errorf("no such global variable: %s", v)
302 return fmt.Errorf("%q contains an invalid Ninja name character "+
344 return fmt.Errorf("%q contains a '.' character", argName)
349 return fmt.Errorf("%q conflicts with Ninja built-in", argName)
Dpackage_ctx.go99 panic(fmt.Errorf("package %q already has a package context"))
231 panic(fmt.Errorf("package %q has no context", pkgPath))
247 panic(fmt.Errorf("package %q has no context", pkgPath))
307 err = fmt.Errorf("error parsing variable %s value: %s", v, err)
412 err = fmt.Errorf("error parsing variable %s value: %s", v, err)
426 panic(fmt.Errorf("method given for variable %s is not a function",
430 panic(fmt.Errorf("method for variable %s has %d inputs (should be 1)",
434 panic(fmt.Errorf("method for variable %s has %d outputs (should be 1)",
438 panic(fmt.Errorf("method for variable %s does not return a string",
519 panic(fmt.Errorf("error parsing PoolParams for %s: %s", p, err))
[all …]
/build/soong/common/
Dandroidmk.go93 fmt.Fprintln(buf, "LOCAL_PATH := $(TOP)")
94 fmt.Fprintln(buf, "LOCAL_MODULE_MAKEFILE := $(lastword $(MAKEFILE_LIST))")
183 fmt.Fprintln(w, "\ninclude $(CLEAR_VARS)")
184 fmt.Fprintln(w, "LOCAL_MODULE :=", name)
185 fmt.Fprintln(w, "LOCAL_MODULE_CLASS :=", data.Class)
186 fmt.Fprintln(w, "LOCAL_MULTILIB :=", amod.commonProperties.Compile_multilib)
187 fmt.Fprintln(w, "LOCAL_SRC_FILES :=", data.OutputFile.String())
192 fmt.Fprintln(w, "LOCAL_MODULE_HOST_CROSS_ARCH :=", archStr)
194 fmt.Fprintln(w, "LOCAL_MODULE_HOST_ARCH :=", archStr)
197 fmt.Fprintln(w, "LOCAL_ACP_UNAVAILABLE := true")
[all …]
Dconfig.go103 return fmt.Errorf("config file: %s did not parse correctly: "+err.Error(), filename)
114 return fmt.Errorf("cannot marshal config data: %s", err.Error())
119 return fmt.Errorf("cannot create empty config file %s: %s\n", filename, err.Error())
125 return fmt.Errorf("default config file: %s could not be written: %s", filename, err.Error())
130 return fmt.Errorf("default config file: %s could not be written: %s", filename, err.Error())
164 return Config{}, fmt.Errorf("Build dir must not contain source directory")
214 return fmt.Sprintf("%s/prebuilts/go/%s", c.srcDir, c.PrebuiltOS())
Darch.go282 panic(fmt.Errorf("Invalid variant %q for arch %q", variant, arch))
288 panic(fmt.Errorf("Invalid feature %q for arch %q variant %q", feature, arch, variant))
358 panic(fmt.Sprintf("unexpected HostOrDevice value %d", hod))
369 panic(fmt.Sprintf("unexpected HostOrDevice value %d", hod))
408 panic(fmt.Sprintf("unsupported OS: %s", runtime.GOOS))
421 panic(fmt.Sprintf("unexpected HostType value %d", ht))
434 panic(fmt.Sprintf("unexpected HostType value %d", ht))
560 panic(fmt.Errorf("properties must be a pointer to a struct, got %T",
566 panic(fmt.Errorf("properties must be a pointer to a struct, got %T",
615 return false, fmt.Errorf("can't be specific to a build variant")
[all …]
/build/blueprint/choosestage/
Dchoosestage.go94fmt.Printf("Newer source version of %s. Copying to %s\n", filepath.Base(bootstrapFile), filepath.B…
96 fmt.Printf("Source: %s\nBuilt: %s\n", bootstrapStat.ModTime(), time)
118 fmt.Fprintf(os.Stderr, "Must specify at least one ninja file\n")
123 fmt.Fprintf(os.Stderr, "Must specify an output file\n")
129 fmt.Fprintf(os.Stderr, "Failed to copy bootstrap ninja file: %s\n", err)
141 fmt.Fprintf(os.Stderr, "Failure when comparing files: %s\n", err)
144 fmt.Printf("Stage %s has changed, restarting\n", filepath.Base(fileName))
167fmt.Printf("For %s:\n file: %s\n time: %s\n", fileName, fileStat.ModTime(), timestampStat.ModTim…
181 fmt.Printf("Choosing %s for next stage\n", filepath.Base(gotoFile))
185 fmt.Fprintf(os.Stderr, "Can't read file: %s", err)
[all …]
/build/soong/cc/
Dandroidmk.go30 fmt.Fprintln(w, "LOCAL_SHARED_LIBRARIES := "+strings.Join(c.deps.SharedLibs, " "))
75 fmt.Fprintln(w, "LOCAL_EXPORT_C_INCLUDE_DIRS :=", strings.Join(exportedIncludes, " "))
78 fmt.Fprintln(w, "LOCAL_MODULE_SUFFIX := "+outputFile.Ext())
81 fmt.Fprintln(w, "LOCAL_CXX_STL := none")
82 fmt.Fprintln(w, "LOCAL_SYSTEM_SHARED_LIBRARIES :=")
92fmt.Fprintln(w, "\n$("+prefix+"OUT_INTERMEDIATE_LIBRARIES)/"+name+objectExtension+":", out.String(…
93 fmt.Fprintln(w, "\t$(copy-file-to-target)")
102 fmt.Fprintln(w, "LOCAL_CXX_STL := none")
103 fmt.Fprintln(w, "LOCAL_SYSTEM_SHARED_LIBRARIES :=")
120 fmt.Fprintln(w, "LOCAL_MODULE_PATH := $(OUT_DIR)/"+dir)
[all …]
/build/blueprint/bpmodify/
Dbpmodify.go45 fmt.Fprintln(os.Stderr, err)
50 fmt.Fprintf(os.Stderr, "usage: bpmodify [flags] [path ...]\n")
76 fmt.Fprintln(os.Stderr, err)
78 return fmt.Errorf("%d parsing errors", len(errs))
84 fmt.Fprintln(os.Stderr, err)
86 fmt.Fprintln(os.Stderr, "continuing...")
96 fmt.Fprintln(out, filename)
107 return fmt.Errorf("computing diff: %s", err)
109 fmt.Printf("diff %s bpfmt/%s\n", filename, filename)
156 return false, []error{fmt.Errorf("expected parameter %s in module %s to be list, found %s",
[all …]
/build/blueprint/proptools/
Dclone.go31 panic(fmt.Errorf("can't copy mismatching types (%s <- %s)",
54 panic(fmt.Errorf("can't copy field %q: slice elements are not strings", field.Name))
74 panic(fmt.Errorf("can't clone field %q: interface refers to a non-pointer",
78 panic(fmt.Errorf("can't clone field %q: interface points to a non-struct",
120 panic(fmt.Errorf("can't clone field %q: points to a %s",
124 panic(fmt.Errorf("unexpected kind for property struct field %q: %s",
154 panic(fmt.Errorf("can't zero field %q: interface refers to a non-pointer",
158 panic(fmt.Errorf("can't zero field %q: interface points to a non-struct",
172 panic(fmt.Errorf("can't zero field %q: points to a %s",
178 panic(fmt.Errorf("unexpected kind for property struct field %q: %s",
[all …]
/build/blueprint/gotestrunner/
Dgotestrunner.go53 fmt.Fprintln(os.Stderr, "error: must pass at least one test executable")
59 fmt.Fprintf(os.Stderr, "error: Failed to locate test binary: %s", err)
70 fmt.Fprintln(os.Stderr, err)
76 fmt.Fprintln(os.Stderr, err)
87 fmt.Fprintf(os.Stderr, "test got signal %s\n", status.Signal())
91 fmt.Fprintln(os.Stderr, err)
/build/blueprint/bpfmt/
Dbpfmt.go33 fmt.Fprintln(os.Stderr, err)
38 fmt.Fprintf(os.Stderr, "usage: bpfmt [flags] [path ...]\n")
64 fmt.Fprintln(os.Stderr, err)
66 return fmt.Errorf("%d parsing errors", len(errs))
81 fmt.Fprintln(out, filename)
92 return fmt.Errorf("computing diff: %s", err)
94 fmt.Printf("diff %s bpfmt/%s\n", filename, filename)
125 fmt.Fprintln(os.Stderr, "error: cannot use -w with standard input")
/build/soong/cmd/soong_env/
Dsoong_env.go30 fmt.Fprintf(os.Stderr, "usage: soong_env env_file\n")
31 fmt.Fprintf(os.Stderr, "exits with success if the environment varibles in env_file match\n")
32 fmt.Fprintf(os.Stderr, "the current environment\n")
46 fmt.Fprintf(os.Stderr, "error: %s\n", err.Error())
/build/tools/fs_get_stats/
Dfs_get_stats.c10 #define ERROR(fmt,args...) \ argument
12 fprintf(stderr, "%s:%d: ERROR: " fmt, \
17 #define DEBUG(fmt,args...) \ argument
18 do { fprintf(stderr, "DEBUG: " fmt, ##args); } while(0)
/build/kati/cmd/kati/
Dmain.go123 fmt.Println(buf.String())
157 fmt.Println("kati: m2n mode")
167 fmt.Printf("Note: %s=%s may confuse m2n --goma, unsetting", k, v)
178 fmt.Printf("kati: setup goma: %s\n", gomaDir)
184 fmt.Printf("goma failed to start: %v", err)
204 fmt.Println("use only first argument as ONE_SHOT_MAKEFILE. ignore rest")
209 fmt.Println(err)
212 fmt.Printf("ONE_SHOT_MAKEFILE=%s\n", os.ExpandEnv("${ONE_SHOT_MAKEFILE}"))
221 fmt.Println(err)
/build/soong/cmd/soong_glob/
Dsoong_glob.go55 fmt.Fprintf(os.Stderr, "usage: soong_glob -o out glob\n")
64 fmt.Fprintln(os.Stderr, "error: -o is required\n")
74 fmt.Fprintf(os.Stderr, "error: %s\n", err.Error())

1234