Home
last modified time | relevance | path

Searched full:printf (Results 1 – 25 of 39) sorted by relevance

12

/nanopb-3.4.0/tests/basic_buffer/
Ddecode_buffer.c26 printf("name: \"%s\"\n", person.name); in print_person()
27 printf("id: %ld\n", (long)person.id); in print_person()
30 printf("email: \"%s\"\n", person.email); in print_person()
35 printf("phone {\n"); in print_person()
36 printf(" number: \"%s\"\n", phone->number); in print_person()
43 printf(" type: WORK\n"); in print_person()
47 printf(" type: HOME\n"); in print_person()
51 printf(" type: MOBILE\n"); in print_person()
55 printf("}\n"); in print_person()
73 printf("Message does not fit in buffer\n"); in main()
[all …]
/nanopb-3.4.0/tests/basic_stream/
Ddecode_stream.c22 printf("name: \"%s\"\n", person.name); in print_person()
23 printf("id: %ld\n", (long)person.id); in print_person()
26 printf("email: \"%s\"\n", person.email); in print_person()
31 printf("phone {\n"); in print_person()
32 printf(" number: \"%s\"\n", phone->number); in print_person()
39 printf(" type: WORK\n"); in print_person()
43 printf(" type: HOME\n"); in print_person()
47 printf(" type: MOBILE\n"); in print_person()
51 printf("}\n"); in print_person()
82 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()
/nanopb-3.4.0/tests/raw_decode/
Draw_decode.c52 printf("LATEST BYTES READ (%d to %d): ", position, g_position); in print_history()
56 printf("%02x ", g_history[i]); in print_history()
59 printf("\n"); in print_history()
81 printf("ERROR: Failed to parse tag: %s\n", PB_GET_ERROR(stream)); in raw_decode()
89 printf("%sterminating on zero tag\n", indent); in raw_decode()
93 printf("%sAt %d: field tag %d, wire type %d (%s)", in raw_decode()
102 printf("\n%sERROR: Failed to parse varint: %s\n", indent, PB_GET_ERROR(stream)); in raw_decode()
107 printf(", varint value (%d bytes): %llu\n", in raw_decode()
116 printf("\n%sERROR: Failed to parse fixed64: %s\n", indent, PB_GET_ERROR(stream)); in raw_decode()
121 printf(", fixed64 value (%d bytes): 0x%016llx\n", in raw_decode()
[all …]
/nanopb-3.4.0/tests/oneof_callback/
Ddecode_oneof.c36 printf(" strvalue: \"%s\"\n", buffer); in SubMsg3_callback()
51 printf((char*)*arg, (int)value); in print_int32()
71 printf((char*)*arg, buffer); in print_string()
88 printf("prefix: %d\n", (int)topmsg->prefix); in msg_callback()
93 printf("submsg1 {\n"); in msg_callback()
100 printf("submsg2 {\n"); in msg_callback()
110 printf("submsg3 {\n"); in msg_callback()
150 printf("prefix: %d\n", (int)msg.prefix); in main()
151 printf("intvalue: %d\n", (int)msg.values.intvalue); in main()
155 printf("prefix: %d\n", (int)msg.prefix); in main()
[all …]
/nanopb-3.4.0/tests/regression/issue_504/
Dtest.c31 printf("%p: '%s'\n", msg.submessage.somestring, msg.submessage.somestring); in main()
41 printf("response payload (%d):", (int)ostream.bytes_written); in main()
43 printf("%02X", buffer[i]); in main()
45 printf("\n"); in main()
67 printf("response payload (%d):", (int)ostream.bytes_written); in main()
69 printf("%02X", buffer[i]); in main()
71 printf("\n"); in main()
/nanopb-3.4.0/tests/common/
Dunittests.h5 #define COMMENT(x) printf("\n----" x "----\n");
11 printf("OK: Line %d\n", __LINE__); \
17 #define COMMENT(x) printf("\n----" x "----\n");
23 printf("\033[32;1mOK:\033[22;39m %s\n", #x); \
/nanopb-3.4.0/tests/msgid/
Ddecode_msgid.c30 printf("Got MyMessage1: intvalue = %d\n", (int)msg.intvalue); in handle_MyMessage1()
41 printf("Got MyMessage2: intvalue = %d, strvalue = %s\n", in handle_MyMessage2()
53 printf("Got MyMessage3: boolvalue = %d\n", (int)msg.boolvalue); in handle_MyMessage3()
71 printf("Message does not fit in buffer\n"); in main()
79 printf("Failed to read prefix: %s\n", PB_GET_ERROR(&stream)); in main()
95 default: printf("Unknown prefix: %d\n", prefix); return 1; in main()
100 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()
/nanopb-3.4.0/tests/regression/issue_395/
Dtest.c26 printf("response payload (%d):", (int)ostream.bytes_written); in main()
28 printf("%02X", buffer[i]); in main()
30 printf("\n"); in main()
/nanopb-3.4.0/tests/missing_fields/
Dmissing_fields.c20 printf("Encode failed.\n"); in main()
34 printf("Decode failed: %s\n", PB_GET_ERROR(&stream)); in main()
46 printf("Decode didn't detect missing field.\n"); in main()
/nanopb-3.4.0/examples/cmake_relpath/
Dsimple.c38 printf("Encoding failed: %s\n", PB_GET_ERROR(&stream)); in main()
62 printf("Decoding failed: %s\n", PB_GET_ERROR(&stream)); in main()
67 printf("Your lucky number was %d!\n", message.lucky_number); in main()
68 printf("Your unlucky number was %u!\n", message.unlucky.number); in main()
/nanopb-3.4.0/examples/using_union_messages/
Ddecode.c70 printf("Got MsgType1: %d\n", msg.value); in main()
76 printf("Got MsgType2: %s\n", msg.value ? "true" : "false"); in main()
82 printf("Got MsgType3: %d %d\n", msg.value1, msg.value2); in main()
87 printf("Decode failed: %s\n", PB_GET_ERROR(&stream)); in main()
/nanopb-3.4.0/examples/simple/
Dsimple.c37 printf("Encoding failed: %s\n", PB_GET_ERROR(&stream)); in main()
61 printf("Decoding failed: %s\n", PB_GET_ERROR(&stream)); in main()
66 printf("Your lucky number was %d!\n", (int)message.lucky_number); in main()
/nanopb-3.4.0/examples/cmake_simple/
Dsimple.c37 printf("Encoding failed: %s\n", PB_GET_ERROR(&stream)); in main()
61 printf("Decoding failed: %s\n", PB_GET_ERROR(&stream)); in main()
66 printf("Your lucky number was %d!\n", message.lucky_number); in main()
/nanopb-3.4.0/examples/conan_dependency/src/
Dsimple.c37 printf("Encoding failed: %s\n", PB_GET_ERROR(&stream)); in main()
61 printf("Decoding failed: %s\n", PB_GET_ERROR(&stream)); in main()
66 printf("Your lucky number was %d!\n", message.lucky_number); in main()
/nanopb-3.4.0/tests/callbacks/
Ddecode_callbacks.c24 printf((char*)*arg, buffer); in print_string()
34 printf((char*)*arg, (long)value); in print_int32()
44 printf((char*)*arg, (long)value); in print_fixed32()
54 printf((char*)*arg, (long)value); in print_fixed64()
/nanopb-3.4.0/examples/network_server/
Dserver.c79 printf("Decode failed: %s\n", PB_GET_ERROR(&input)); in handle_connection()
84 printf("Listing directory: %s\n", request.path); in handle_connection()
109 printf("Encoding failed: %s\n", PB_GET_ERROR(&output)); in handle_connection()
154 printf("Got connection.\n"); in main()
158 printf("Closing connection.\n"); in main()
/nanopb-3.4.0/examples/platformio/src/
Dtest.h8 printf("\033[32;1mOK:\033[22;39m %s\n", #x); \
/nanopb-3.4.0/tests/regression/issue_494/
Doneof_size.cc15 printf("Size: %d\n", (int)MyMessage_size); in main()
/nanopb-3.4.0/tests/oneof/
Ddecode_oneof.c22 printf("Decoding failed: %s\n", PB_GET_ERROR(stream)); in test_oneof_1()
63 printf("Decoding failed: %s\n", PB_GET_ERROR(stream)); in test_oneof_2()
109 printf("Message does not fit in buffer\n"); in main()
/nanopb-3.4.0/tests/anonymous_oneof/
Ddecode_oneof.c22 printf("Decoding failed: %s\n", PB_GET_ERROR(stream)); in test_oneof_1()
72 printf("Message does not fit in buffer\n"); in main()
/nanopb-3.4.0/.github/workflows/
Dpython2_tests.yml33 export GENPATH=$(bash -c 'printf %q "$(pwd)/generator/protoc-gen-nanopb-py2"')
/nanopb-3.4.0/tests/any_type/
Ddecode_any.c25 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()
/nanopb-3.4.0/tests/extensions/
Ddecode_extensions.c44 printf("Parsing failed: %s\n", PB_GET_ERROR(&stream)); in main()
/nanopb-3.4.0/tests/map/
Ddecode_map.c36 printf("Message does not fit in buffer\n"); in main()
/nanopb-3.4.0/tests/stackusage/
Dstackusage.c90 printf("%d %d\n", stack_encode, stack_decode); in main()

12