Home
last modified time | relevance | path

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

123

/thrift-3.4.0/compiler/cpp/src/thrift/
Dlogging.cc30 void pdebug(const char* fmt, ...) { in pdebug() argument
36 va_start(args, fmt); in pdebug()
37 vprintf(fmt, args); in pdebug()
42 void pverbose(const char* fmt, ...) { in pverbose() argument
47 va_start(args, fmt); in pverbose()
48 vprintf(fmt, args); in pverbose()
52 void pwarning(int level, const char* fmt, ...) { in pwarning() argument
58 va_start(args, fmt); in pwarning()
59 vprintf(fmt, args); in pwarning()
64 void failure(const char* fmt, ...) { in failure() argument
[all …]
Dlogging.h30 void pdebug(const char* fmt, ...);
35 void pwarning(int level, const char* fmt, ...);
40 void pverbose(const char* fmt, ...);
45 void failure(const char* fmt, ...);
Dmain.cc229 void yyerror(const char* fmt, ...) { in yyerror() argument
233 va_start(args, fmt); in yyerror()
234 vfprintf(stderr, fmt, args); in yyerror()
245 void pdebug(const char* fmt, ...) { in pdebug() argument
251 va_start(args, fmt); in pdebug()
252 vprintf(fmt, args); in pdebug()
262 void pverbose(const char* fmt, ...) { in pverbose() argument
267 va_start(args, fmt); in pverbose()
268 vprintf(fmt, args); in pverbose()
277 void pwarning(int level, const char* fmt, ...) { in pwarning() argument
[all …]
/thrift-3.4.0/test/go/src/common/
Dprinting_handler.go41 fmt.Println("testVoid()")
52 fmt.Printf("testString(\"%s\")\n", thing)
63 fmt.Printf("testBool(%t)\n", thing)
74 fmt.Printf("testByte(%d)\n", thing)
85 fmt.Printf("testI32(%d)\n", thing)
96 fmt.Printf("testI64(%d)\n", thing)
107 fmt.Printf("testDouble(%f)\n", thing)
118 fmt.Printf("testBinary(%s)\n", hex.EncodeToString(thing))
129 fmt.Printf("testUuid(%s)\n", thing.String())
140fmt.Printf("testStruct({\"%s\", %d, %d, %d})\n", thing.StringThing, thing.ByteThing, thing.I32Thin…
[all …]
Dclient.go47 hostPort := fmt.Sprintf("%s:%d", host, port)
67 return nil, nil, fmt.Errorf("invalid protocol specified %s", protocol)
91 …trans, err = thrift.NewTHttpClientWithOptions(fmt.Sprintf("https://%s/", hostPort), thrift.THttpCl…
92 fmt.Println(hostPort)
94 trans, err = thrift.NewTHttpClient(fmt.Sprintf("http://%s/", hostPort))
105 return nil, nil, fmt.Errorf("invalid transport specified %s", transport)
Dserver.go52 hostPort := fmt.Sprintf("%s:%d", host, port)
68 return nil, nil, nil, nil, fmt.Errorf("invalid protocol specified %s", protocol)
110 return nil, nil, nil, nil, fmt.Errorf("invalid transport specified %s", transport)
/thrift-3.4.0/tutorial/go/src/
Dclient.go34 fmt.Println("ping()")
37 fmt.Print("1+1=", sum, "\n")
47 fmt.Println("Invalid operation:", v)
49 fmt.Println("Error during operation:", err)
52 fmt.Println("Whoa we can divide by 0 with new value:", quotient)
62 fmt.Println("Invalid operation:", v)
64 fmt.Println("Error during operation:", err)
68 fmt.Print("15-10=", diff, "\n")
73 fmt.Println("Unable to get struct:", err)
76 fmt.Println("Check log:", log.Value)
Dmain.go32 fmt.Fprint(os.Stderr, "Usage of ", os.Args[0], ":\n")
34 fmt.Fprint(os.Stderr, "\n")
59 fmt.Fprint(os.Stderr, "Invalid protocol specified", protocol, "\n")
82 fmt.Println("error running server:", err)
86 fmt.Println("error running client:", err)
Dhandler.go40 fmt.Print("ping()\n")
45 fmt.Print("add(", num1, ",", num2, ")\n")
50 fmt.Print("calculate(", logid, ", {", w.Op, ",", w.Num1, ",", w.Num2, "})\n")
91 fmt.Print("getStruct(", key, ")\n")
97 fmt.Print("zip()\n")
Dserver.go48 fmt.Printf("%T\n", transport)
53 fmt.Println("Starting the simple server... on ", addr)
/thrift-3.4.0/lib/go/thrift/
Dserializer_types_test.go57 var _ = fmt.Printf
95 return MyTestEnum(0), fmt.Errorf("not a valid MyTestEnum string")
168 return PrependError(fmt.Sprintf("%T read error: ", p), err)
173 return PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
237 return PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
399 return PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
448 return PrependError(fmt.Sprintf("%T write field begin error 1:on: ", p), err)
451 return PrependError(fmt.Sprintf("%T.on (1) field write error: ", p), err)
454 return PrependError(fmt.Sprintf("%T write field end error 1:on: ", p), err)
461 return PrependError(fmt.Sprintf("%T write field begin error 2:b: ", p), err)
[all …]
Dsimple_json_protocol.go209 return fmt.Errorf("Expected '%s' but found '%s' while parsing JSON.", expected, actual)
400 e := fmt.Errorf("Expected \"}\" or '\"', but found: '%s'", string(b))
480 e := fmt.Errorf("Expected \"true\" but found: %s", string(b))
492 e := fmt.Errorf("Expected \"false\" but found: %s", string(b))
504 e := fmt.Errorf("Expected \"null\" but found: %s", string(b))
508 e := fmt.Errorf("Expected \"true\", \"false\", or \"null\" but found: %s", string(f))
560 e := fmt.Errorf("Expected a JSON string, found unquoted data started with %s", string(b))
564 e := fmt.Errorf("Expected a JSON string, found unquoted data started with %s", string(f))
590 e := fmt.Errorf("Expected a JSON string, found unquoted data started with %s", string(b))
594 e := fmt.Errorf("Expected a JSON string, found unquoted data started with %s", string(f))
[all …]
Dserver_socket_test.go30 addr := fmt.Sprintf("%s:%d", host, port)
47 addr := fmt.Sprintf("%s:%d", host, port)
Dclient.go63 return NewTApplicationException(WRONG_METHOD_NAME, fmt.Sprintf("%s: wrong method name", method))
65 …return NewTApplicationException(BAD_SEQUENCE_ID, fmt.Sprintf("%s: out of order sequence response",…
78 …return NewTApplicationException(INVALID_MESSAGE_TYPE_EXCEPTION, fmt.Sprintf("%s: invalid message t…
Duuid.go99 return u, fmt.Errorf("malformed Tuuid string: %q", s)
111 return u, fmt.Errorf("malformed Tuuid string: %q", s)
Dmultiplexed_protocol.go198 return false, NewTProtocolException(fmt.Errorf("Unexpected message type %v", typeId))
207 return false, NewTProtocolException(fmt.Errorf(
214 return false, NewTProtocolException(fmt.Errorf(
/thrift-3.4.0/lib/rs/src/
Derrors.rs20 use std::fmt::{Debug, Display, Formatter};
21 use std::{error, fmt, io, string};
271 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
273 Error::Transport(ref e) => Debug::fmt(e, f), in fmt()
274 Error::Protocol(ref e) => Debug::fmt(e, f), in fmt()
275 Error::Application(ref e) => Debug::fmt(e, f), in fmt()
276 Error::User(ref e) => Debug::fmt(e, f), in fmt()
282 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
284 Error::Transport(ref e) => Display::fmt(e, f), in fmt()
285 Error::Protocol(ref e) => Display::fmt(e, f), in fmt()
[all …]
/thrift-3.4.0/lib/go/test/fuzz/
Dfuzz.go75 fmt.Printf("lol %d %s %v\n", n, err, res)
89 fmt.Print("ping()\n")
94 fmt.Print("add(", num1, ",", num2, ")\n")
99 fmt.Print("calculate(", logid, ", {", w.Op, ",", w.Num1, ",", w.Num2, "})\n")
136 fmt.Print("getStruct(", key, ")\n")
142 fmt.Print("zip()\n")
/thrift-3.4.0/test/go/src/bin/testserver/
Dmain.go54 err := http.ListenAndServeTLS(fmt.Sprintf(":%d", *port),
58 fmt.Println(err)
62 http.ListenAndServe(fmt.Sprintf(":%d", *port), nil)
/thrift-3.4.0/lib/rs/
DMakefile.am35 $(CARGO) fmt --all -- --check
40 $(CARGO) fmt --all -- --check
DREADME.md71 use std::fmt;
72 use std::fmt::{Display, Formatter};
97 fn fmt(&self, f: &mut Formatter) -> fmt::Result {
107 use std::fmt;
108 use std::fmt::{Display, Formatter};
129 fn fmt(&self, f: &mut Formatter) -> fmt::Result {
/thrift-3.4.0/lib/d/src/thrift/
Dbase.d96 T...)(string fmt, T args) if ( in logFormatted()
110 g_formatBuffer.put(fmt); in logFormatted()
112 formattedWrite(g_formatBuffer, fmt, args); in logFormatted()
/thrift-3.4.0/lib/cpp/test/processor/
DEventLog.cpp32 void debug(const char* fmt, ...) { in debug() argument
35 va_start(ap, fmt); in debug()
36 vfprintf(stderr, fmt, ap); in debug()
/thrift-3.4.0/lib/rb/benchmark/
Dbenchmark.rb194 fmt = "%.4f seconds"
207 tabulate fmt,
233 def tabulate(fmt, *labels_and_values) argument
237 f = fmt
/thrift-3.4.0/lib/rs/test_recursive/
DMakefile.am23 $(CARGO) fmt --all -- --check

123