Home
last modified time | relevance | path

Searched refs:printf (Results 1 – 25 of 159) sorted by relevance

1234567

/picolibc-latest/newlib/testsuite/newlib.locale/
DUTF-8.c144 printf("Failed to set C-UTF-8 locale.\n"); in main()
148 printf("Set C-UTF-8 locale.\n"); in main()
154 printf("2.1.1: U-%08ld\n", (long) wchar); in main()
156 printf("2.1.1: Invalid\n"); in main()
162 printf("2.1.%d: U-%08lx\n", i, (long) wchar); in main()
164 printf("2.1.%d: Invalid\n", i); in main()
172 printf("2.2.%d: U-%08lx\n", i, (long) wchar); in main()
174 printf("2.2.%d: Invalid\n", i); in main()
182 printf("2.3.%d: U-%08lx\n", i, (long) wchar); in main()
184 printf("2.3.%d: Invalid\n", i); in main()
[all …]
/picolibc-latest/doc/printf-sample/
DMakefile56 LOG=printf.log printf-float.log printf-long-long.log printf-integer.log printf-minimal.log
58 ALL=printf.elf printf-float.elf printf-long-long.elf printf-integer.elf printf-minimal.elf
62 printf.log: printf.elf
65 printf.elf: printf.c
68 printf-float.log: printf-float.elf
71 printf-float.elf: printf.c
74 printf-long-long.log: printf-long-long.elf
77 printf-long-long.elf: printf.c
80 printf-integer.log: printf-integer.elf
83 printf-integer.elf: printf.c
[all …]
/picolibc-latest/test/
Dmalloc.c59 printf("malloc(0): %p\n", r); in main()
61 printf("malloc(0) failed: %s. got %p\n", strerror(errno), r); in main()
67 printf("memalign(128, 237): %p\n", r); in main()
69 printf("memalign(128, 237) unaligned (%p)\n", r); in main()
76 printf("posix_memalign(128, 237): %p, err=%d\n", r, err); in main()
78 printf("posix_memalign(128, 237) unaligned (%p)\n", r); in main()
85 printf("posix_memalign(0, 237): %p, err=%d\n", r, err); in main()
87 printf("posix_memalign(0, 237) should return EINVAL\n"); in main()
94 printf("posix_memalign(129, 237): %p, err=%d\n", r, err); in main()
96 printf("posix_memalign(129, 237) should return EINVAL\n"); in main()
[all …]
Dtimegm.c61 printf (" {\n"); in main()
62 printf (" .time = %ld,\n", tests[i].time); in main()
63 printf (" .tm = {\n"); in main()
64 printf (" .tm_sec = %d,\n", tests[i].tm.tm_sec); /* Seconds (0-60) */ in main()
65 printf (" .tm_min = %d,\n", tests[i].tm.tm_min); /* Minutes (0-59) */ in main()
66 printf (" .tm_hour = %d,\n", tests[i].tm.tm_hour); /* Hours (0-23) */ in main()
67printf (" .tm_mday = %d,\n", tests[i].tm.tm_mday); /* Day of the month (1-31) */ in main()
68 printf (" .tm_mon = %d,\n", tests[i].tm.tm_mon); /* Month (0-11) */ in main()
69 printf (" .tm_year = %d,\n", tests[i].tm.tm_year); /* Year - 1900 */ in main()
70printf (" .tm_wday = %d,\n", tests[i].tm.tm_wday); /* Day of the week (0-6, Sunday = 0)… in main()
[all …]
Dtls.c79 printf("%s (%p) is not inside TLS region [%p-%p)\n", #ptr, \
90 printf("tls check %s %p %p %p %p\n", where, &data_var, in check_tls()
94 printf("TLS alignment too small for data (need %ld, got %ld)\n", in check_tls()
100 printf("TLS alignment too small for bss (need %ld, got %ld)\n", in check_tls()
107 printf("TLS data region (%p) is not %ld aligned\n", in check_tls()
112 printf("overaligned_data_var (%p) is not %ld aligned\n", in check_tls()
117 printf("overaligned_bss_var (%p) is not %ld aligned\n", in check_tls()
122 printf("overaligned_non_tls_bss_var (%p) is not %ld aligned\n", in check_tls()
127 printf("%s: initialized thread var has wrong value (0x%" PRIx32 " instead of 0x%" PRIx32 ")\n", in check_tls()
132printf("%s: initialized overaligned thread var has wrong value (0x%" PRIx32 " instead of 0x%" PRIx… in check_tls()
[all …]
Dlong_double_gen.5c90 printf("#ifndef %s\n", prec);
91 printf("#define %s DEFAULT_PREC\n", prec);
92 printf("#endif\n");
101 printf("\n");
103 printf("#ifdef FULL_LONG_DOUBLE\n");
105 printf("static long_double_test_f_f_t %s[] = {\n", vec);
125 printf(" { .line = __LINE__, .x = %.-eL, .y = %s },\n", x, sy);
129 printf("};\n\n");
130 printf("static int test_%s(void) {\n", f.name);
131 printf(" unsigned int i;\n");
[all …]
Dtest-strerrorlen_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
123 printf("All strerrorlen_s tests passed!\n"); in main()
Dposix-io.c55 printf("read incorrect byte %c != %c\n", c, *t); in test_cmp()
70 printf("failed to open \"%s\" for writing\n", file_name); in main()
75 printf("failed to fprintf test string %s\n", test_string); in main()
81 printf("failed to seek back 3 bytes\n"); in main()
88 printf("failed to seek to 2 bytes\n"); in main()
96 printf("fclose failed\n"); in main()
102 printf("failed to open \"%s\" for reading\n", file_name); in main()
109 printf("success\n"); in main()
Dtest-atomic.c19 printf("atomic_compare_exchange 4 worked, value %" PRIu32 " zero %" PRIu32 "\n", in main()
24 printf("atomic_exchange_explicit 4 worked %" PRIu32 " value now %" PRIu32 "\n", in main()
27 printf("atomic_exchange_explicit failed %" PRIu32 " value now %" PRIu32 "\n", in main()
32 printf("atomic_compare_exchange 4 failed, value %" PRIu32 "\n", atomic_4); in main()
39printf("atomic_compare_exchange 2 worked, value %" PRIu16 " zero %" PRIu16 "\n", atomic_2, zero_2); in main()
43 printf("atomic_exchange_explicit 2 worked %" PRIu16 " value now %" PRIu16 "\n", in main()
46 printf("atomic_exchange_explicit 2 failed %" PRIu16 " value now %" PRIu16 "\n", in main()
51 printf("atomic_compare_exchange 2 failed, value %" PRIu16 "\n", atomic_2); in main()
Dtest-memset_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
140 printf("All memset_s tests passed!\n"); in main()
Dtest-strnlen_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
148 printf("All strnlen_s tests passed!\n"); in main()
Dsetjmp.c42 printf("func param %d\n", param); in func()
55 printf("setjmp 1 returns %d\n", ret); in main()
58 printf("func returned\n"); in main()
62 printf("setjmp 2 returns %d\n", ret); in main()
65 printf("already been here (longjmp(env, 0) returned 0?)\n"); in main()
70 printf("func returned\n"); in main()
Dtest-sprintf_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
150 printf("All sprintf_s tests passed!\n"); in main()
Dtest-strerror_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
144 printf("All strerror_s tests passed!\n"); in main()
Drounding-mode.c160 printf("test double %s for value %g \n", name, value); in check()
163 printf("ERROR fesetround %s failed\n", name); in check()
170 printf("ERROR fesetround %d succeeded\n", FE_ALL_EXCEPT+1); in check()
174 printf("ERROR fegetround() != %s\n", name); in check()
179 printf("ERROR double %s: value %g want %g got %g\n", name, value, want, got); in check()
185 printf("ERROR fesetround %s failed\n", name); in check()
190 printf("ERROR double %s: -value %g want %g got %g\n", name, value, want, got); in check()
197 printf("test float %s for value %g \n", name, value); in check()
200 printf("ERROR fesetround %s failed\n", name); in check()
207 printf("ERROR fesetround %d succeeded\n", FE_ALL_EXCEPT+1); in check()
[all …]
Dtest-memmove_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
148 printf("All memmove_s tests passed!\n"); in main()
Dfma_gen.5c117 # printf("denorm %d\n", denorm);
138 # printf("%a: mant %e ipart %d fpart %f\n", x, mant, ipart, fpart);
207 # printf("rounded ipart %d exp %d bits %d\n", ipart, exp, bits);
408printf(" /* %4d */ { %-17s, %-17s, %-17s, {", i, strfromfloat(x, suf), strfromfloat(y, suf), strfr…
410 printf(" %s,", strfromfloat(round(r, format, i_format, rounding_mode_t.TONEAREST), suf));
411 printf(" %s,", strfromfloat(round(r, format, i_format, rounding_mode_t.UPWARD), suf));
412 printf(" %s,", strfromfloat(round(r, format, i_format, rounding_mode_t.DOWNWARD), suf));
413 printf(" %s" , strfromfloat(round(r, format, i_format, rounding_mode_t.TOWARDZERO), suf));
414 printf(" } },\n");
463 printf("/* This file is automatically generated with fma_gen.5c */\n");
[all …]
Dtest-memcpy_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
149 printf("All memcpy_s tests passed!\n"); in main()
Dtest-strcat_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
159 printf("All strcat_s tests passed!\n"); in main()
Dtest-strcpy_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
153 printf("All strcpy_s tests passed!\n"); in main()
Dtest-strncpy_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
152 printf("All strncpy_s tests passed!\n"); in main()
Dtest-strncat_s.c57 printf("Test %d Failed: %s\n", test_id, msg); \
60 printf("Test %d Passed: %s\n", test_id, msg); \
70 printf( in test_handler_called()
72 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
78 printf("ERROR: Custom constraint handler not called\n"); in test_handler_called()
79 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
83 printf( in test_handler_called()
86 printf("Test %d Failed: Error msg is incorrect\n", test_id); in test_handler_called()
90 printf( in test_handler_called()
172 printf("All strncat_s tests passed!\n"); in main()
/picolibc-latest/test/semihost/
Dsemihost-gettimeofday.c49 printf("gettimeofday return %d\n", ret); in main()
53 printf("gettimeofday return value before 2020-9-13 %lld\n", in main()
60 printf("gettimeofday return %d\n", ret); in main()
64 printf("gettimeofday: seconds changed by %lld\n", in main()
72 printf("gettimeofday: ok\n"); in main()
79 printf("gettimeofday: clock went backwards\n"); in main()
83 printf("gettimeofday: clock never changed\n"); in main()
Dsemihost-seek.c57 printf("open %s failed\n", TEST_FILE_NAME); in main()
62 printf("write failed %ld %d\n", (long) not_written, sys_semihost_errno()); in main()
69 printf("close failed %d %d\n", ret, sys_semihost_errno()); in main()
76 printf("open %s failed\n", TEST_FILE_NAME); in main()
83 printf("seek failed %d %d\n", ret, sys_semihost_errno()); in main()
90 printf("read failed got %ld wanted %ld\n", (long) not_read, in main()
97 printf("read bad contents got %s wanted %s\n", in main()
/picolibc-latest/newlib/libc/machine/spu/
Dprintf.S37 GLOBL printf
38 .type printf, @function
39 printf: label
53 .size printf, .-printf

1234567