Home
last modified time | relevance | path

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

12

/examples/libc/
A Dprintf.c58 (void) printf(fmt, 0); in intchk()
63 (void) printf("\"\n"); in intchk()
75 (void) printf("\"\n"); in fltchk()
107 printf("#%4x#\n",4); in printf_test()
111 printf("#%i#\n",18); in printf_test()
115 printf("#%i#\n",18); in printf_test()
116 printf("#%d#\n",18); in printf_test()
117 printf("#%u#\n",18); in printf_test()
118 printf("#%lu#\n",18); in printf_test()
119 printf("#%li#\n",18); in printf_test()
[all …]
A Dsem.c17 printf("other_thread here!\n"); in other_thread()
23 printf("other_thread: sem_post...\n"); in other_thread()
25 printf("sem_post failed\n"); in other_thread()
29 printf("other_thread dies!\n"); in other_thread()
37 printf("main thread here!\n"); in test_thread()
38 printf("sleep 5 seconds..."); in test_thread()
40 printf("done\n"); in test_thread()
49 printf("created OtherThread=%x\n", tid); in test_thread()
54 printf("Main: sem_wait...\n"); in test_thread()
56 printf("sem_wait failed\n"); in test_thread()
[all …]
A Dfile.c27 printf("open failed\n"); in libc_fstat()
32 printf("begin: %d\n", lseek(fd, 0, SEEK_SET)); in libc_fstat()
33 printf("end: %d\n", lseek(fd, 0, SEEK_END)); in libc_fstat()
35 printf("fstat result: %d\n", fstat(fd, &s)); in libc_fstat()
47 printf("open failed\n"); in libc_lseek()
52 printf("begin: %d\n", lseek(fd, 0, SEEK_SET)); in libc_lseek()
53 printf("end: %d\n", lseek(fd, 0, SEEK_END)); in libc_lseek()
107 printf("%d: write error\n", __LINE__); in libc_fseek()
176 printf("%d: fread() failed\n", __LINE__); in libc_fseek()
203 printf("%d: fread() failed\n", __LINE__); in libc_fseek()
[all …]
A Dmq.c33 printf("Enter into send_1 \n"); in send_1()
39 printf("[%d] send '%s' in thread send_1. \n", i+1, s_msg_ptr[i]); in send_1()
50 printf("Enter into send_2 \n"); in send_2()
56 printf("[%d] send '%s' in thread send_2. \n", i+1, s_msg_ptr[i]); in send_2()
66 printf("Enter into receive_1 \n"); in receive_1()
72 printf("[%d] receive '%s' in thread receive_1. \n", i+1, r_msg_ptr_1[i]); in receive_1()
81 printf("Enter into receive_2 \n"); in receive_2()
87 printf("[%d] receive '%s' in thread receive_2. \n", i+1, r_msg_ptr_2[i]); in receive_2()
104 printf("mq_open doesn't return success \n"); in libc_mq()
108 printf("mq_open doesn't return success \n"); in libc_mq()
[all …]
A Dex1.c21 printf("Starting process %s\n", (char *)arg); in process()
35 printf("create a %s %d\n", sucfail(pret), pret); in libc_ex1()
37 printf("create b %s %d\n", sucfail(pret), pret); in libc_ex1()
39 printf("join a %s %d\n", sucfail(pret), pret); in libc_ex1()
41 printf("join b %s %d\n", sucfail(pret), pret); in libc_ex1()
A Ddirent.c31 printf("%s\n", dp->d_name); in libc_dirent()
39 printf("going back past 4-th entry...\n"); in libc_dirent()
48 printf("seekdir (d, %ld); telldir (d) == %ld\n", save3, cur); in libc_dirent()
54 printf("%s\n", dp->d_name); in libc_dirent()
A Denv.c17 printf("PATH=%s\n", getenv("PATH")); in libc_env()
19 printf("foo=%s\n", getenv("foo")); in libc_env()
A Dex4.c66 printf("Thread %lx: allocating buffer at %p\n", pthread_self(), accu); in str_accumulate()
78 printf("Thread %lx: allocated key %d\n", pthread_self(), str_key); in str_alloc_key()
86 printf("Thread %lx: freeing buffer at %p\n", pthread_self(), accu); in str_alloc_destroy_accu()
98 printf("Thread %lx: \"%s\"\n", pthread_self(), res); in process()
111 printf("Thread %lx: \"%s\"\n", pthread_self(), res); in libc_ex4()
A Dtime.c20 printf("%d\n", time(0)); in speed()
24 printf("%d\n", time(0)); in speed()
A Dex3.c39 printf("Searching for the number = %d...\n", pid); in libc_ex3()
52 printf("It took %d tries to find the number.\n", tries); in libc_ex3()
72 printf("Thread %lx was canceled on its %d try.\n", tid, *try); in print_it()
137 printf("Thread %lx found the number!\n", tid); in search()
A Dex6.c32 printf("status = %d, count = %lu: %s\n", status, count, strerror( in libc_ex6()
36 printf("count = %lu\n", count); in libc_ex6()
A Drand.c40 printf("%d != %d\n", j1, i1); in libc_rand()
42 printf("%d != %d\n", j2, i2); in libc_rand()
/examples/test/
A Ddhry_1.c21 #define printf rt_kprintf macro
92 printf ("\n"); in dhry_test()
94 printf ("\n"); in dhry_test()
98 printf ("\n"); in dhry_test()
103 printf ("\n"); in dhry_test()
110 printf ("\n"); in dhry_test()
175 printf ("\n"); in dhry_test()
177 printf ("\n"); in dhry_test()
190 printf ("Ptr_Glob->\n"); in dhry_test()
225 printf ("\n"); in dhry_test()
[all …]
A Dmem_test.c15 #define printf rt_kprintf macro
21 printf("memtest,address: 0x%08X size: 0x%08X\r\n", address, size); in mem_test()
36 printf("8bit test fail @ 0x%08X\r\nsystem halt!!!!!",(uint32_t)p_uint8_t); in mem_test()
41 printf("8bit test pass!!\r\n"); in mem_test()
57 printf("16bit test fail @ 0x%08X\r\nsystem halt!!!!!",(uint32_t)p_uint16_t); in mem_test()
62 printf("16bit test pass!!\r\n"); in mem_test()
83 printf("32bit test pass!!\r\n"); in mem_test()
100 printf("32bit Loopback test fail @ 0x%08X", (uint32_t)p_uint32_t); in mem_test()
101 printf(" data:0x%08X \r\n", (uint32_t)*p_uint32_t); in mem_test()
102 printf("system halt!!!!!",(uint32_t)p_uint32_t); in mem_test()
[all …]
/examples/utest/testcases/posix/stdio_h/functions/
A Dfflush_tc.c6 printf("test fflush\n"); in fflush_entry()
8 printf("t"); in fflush_entry()
9 printf("e"); in fflush_entry()
10 printf("s"); in fflush_entry()
11 printf("t"); in fflush_entry()
13 printf(" fflush"); in fflush_entry()
15 printf("\n"); in fflush_entry()
A Dfdopen_tc.c13 printf("open fail.\n"); in fdopen_entry()
21 printf("fdopen fail.\n"); in fdopen_entry()
/examples/utest/testcases/posix/pthread_h/functions/pthread_cond_destroy/
A Dpthread_cond_destroy_1-1_tc.c32 printf("Line-%04d\n", __LINE__); in posix_testcase()
40 printf("Line-%04d\n", __LINE__); in posix_testcase()
47 printf("Line-%04d\n", __LINE__); in posix_testcase()
55 printf("Line-%04d\n", __LINE__); in posix_testcase()
59 printf("Test FAILED\n"); in posix_testcase()
63 printf("Line-%04d\n", __LINE__); in posix_testcase()
67 printf("Test FAILED\n"); in posix_testcase()
71 printf("Line-%04d", __LINE__); in posix_testcase()
75 printf("Test FAILED\n"); in posix_testcase()
79 printf("Line-%04d", __LINE__); in posix_testcase()
[all …]
/examples/utest/testcases/posix/unistd_h/functions/
A Dchdir_tc.c24 printf("error\n"); in chdir_entry()
30 printf("error\n"); in chdir_entry()
34 printf("ptr %s\n",ptr); in chdir_entry()
35 printf("old curr dir is %s\n", ptr); in chdir_entry()
44 printf("error\n"); in chdir_entry()
48 printf("new curr dir is %s\n", ptr); in chdir_entry()
A Dopen_read_write_fsync_close_tc.c18 printf("the data is: %s\n", s); in open_read_write_fsync_close_entry()
23 printf("rw_entry open error\n"); in open_read_write_fsync_close_entry()
30 printf("the read content is %s\n ",buffer); in open_read_write_fsync_close_entry()
35 printf("fync failed\n "); in open_read_write_fsync_close_entry()
40 printf("the fync read content is %s\n ",buffer); in open_read_write_fsync_close_entry()
50 printf("Read from file test.txt : %s \n", buffer); in open_read_write_fsync_close_entry()
/examples/utest/testcases/posix/pthread_h/functions/pthread_join/
A Dpthread_join_1-1_tc.c31 printf("Wait for 3 seconds for thread to finish execution:\n"); in a_thread_func()
33 printf("Waited (%d) second\n", i); in a_thread_func()
64 printf("Test FAILED: When using pthread_join(), " in posix_testcase()
70 printf("Test PASSED\n"); in posix_testcase()
/examples/utest/testcases/posix/pthread_h/functions/pthread_detach/
A Dpthread_detach_2-1_tc.c66 printf("Error detaching thread\n"); in posix_testcase()
75 printf("Test FAILED\n"); in posix_testcase()
82 printf("Test PASSED\n"); in posix_testcase()
A Dpthread_detach_1-1_tc.c67 printf("Error detaching thread\n"); in posix_testcase()
78 printf("Test FAILED\n"); in posix_testcase()
81 printf("Test PASSED\n"); in posix_testcase()
/examples/utest/testcases/posix/dirent_h/functions/
A Dopen_read_close_dir_tc.c16 printf("open directory error!\n"); in dir_test_entry()
22 printf("found %s\n", d->d_name); in dir_test_entry()
/examples/utest/testcases/posix/pthread_h/functions/pthread_create/
A Dpthread_create_1-2_tc.c51 printf("Test FAILED: A new thread wasn't created: %s\n", in posix_testcase()
56 printf("Test PASSED\n"); in posix_testcase()
/examples/utest/testcases/posix/pthread_h/functions/pthread_exit/
A Dpthread_exit_1-1_tc.c69 printf in posix_testcase()
74 printf("Test PASSED\n"); in posix_testcase()

Completed in 32 milliseconds

12