Searched refs:printf (Results 1 - 25 of 163) sorted by relevance

1234567

/system/extras/tests/bionic/libc/common/
H A Dtest_semaphore.c52 printf( "thread 1: waiting for semaphore\n" );
54 printf( "thread 1: could not wait for semaphore: %s\n", strerror(errno) );
57 printf( "thread 1: got the semaphore ! sleeping for 2 seconds\n" );
59 printf( "thread 1: awake !! posting semaphore\n" );
61 printf( "thread 2: could not post semaphore: %s\n", strerror(errno) );
63 printf( "thread 1: quitting\n" );
70 printf( "thread 2: sleeping for 1 second\n" );
72 printf( "thread 2: awake !! waiting for semaphore\n" );
74 printf( "thread 2: could not wait for semaphore: %s\n", strerror(errno) );
77 printf( "threa
[all...]
H A Dtest_tm_zone.c45 printf( "TZ set to '%s'\n", tz );
47 printf( "TZ is not defined\n" );
50 printf( "localtime_r() returns timezone abbreviation '%s'\n", tm->TM_ZONE ? tm->TM_ZONE : "<NULL POINTER>" );
51 printf( "tzname[0] is '%s'\n", tzname[0] ? tzname[0] : "<NULL POINTER>" );
52 printf( "tzname[1] is '%s'\n", tzname[1] ? tzname[1] : "<NULL POINTER>" );
H A Dtest_gethostbyname.c47 printf("gethostbyname(%s) returned NULL !!\n", hostname);
50 printf( "gethostbyname(%s) returned:\n", hostname);
51 printf( " name: %s\n", hent->h_name );
52 printf( " aliases:" );
54 printf( " %s", hent->h_aliases[i] );
55 printf( "\n" );
56 printf( " address type: " );
58 case AF_INET: printf( "AF_INET\n"); break;
59 case AF_INET6: printf( "AF_INET6\n"); break;
60 default: printf("UNKNOW
[all...]
H A Dtest_seteuid.c36 printf( "sizeof(uid_t) = %d sizeof(gid_t) = %d\n", sizeof(uid_t), sizeof(gid_t) );
40 printf("Start: ruid=%d euid=%d\n", ruid, euid);
47 printf("After set: ruid=%d euid=%d\n", ruid, euid);
54 printf("After restore: ruid=%d euid=%d\n", ruid, euid);
H A Dtest_gethostname.c41 printf("gethostname() returned error %d: %s\n", errno, strerror(errno));
45 printf("gethostname() returned '%s'\n", hostname);
H A Dtest_sem_post.c49 printf("thread %p waiting\n", me);
51 printf("thread %p exiting\n", me);
65 printf( "Could not initialize semaphore: %s\n", strerror(errno) );
71 printf("Could not create thread %d: %s\n", nn+1, strerror(errno) );
85 printf("Thread %p joined but returned %p\n", (void*)t[nn], result);
90 printf("Could not get semaphore value: %s\n", strerror(errno));
94 printf("Error: Semaphore value = %d\n", value);
H A Dtest_drand48.c32 printf( "%s: ", #value); \
34 printf("KO: %ld (%ld expected)\n", _val, _expected); \
37 printf("%ld (ok)\n", _expected); \
45 printf( "%s: ", #value); \
47 printf("KO: %.12g (%.12g expected)\n", _val, _expected); \
50 printf("%.12g (ok)\n", _expected); \
62 // This is done to confirm the correct printf format specifiers
65 printf(" l: %li\n", l);
66 printf(" f: %g\n", (double) f);
67 printf("
[all...]
/system/extras/tests/bionic/libc/other/
H A Dtest_atomics.c11 printf("old_x=%d\n", __atomic_dec(&x));
12 printf("x=%d\n", x);
15 printf ("OK\n");
H A Dtest_aligned.c17 printf( "read4: offset=%d value=%08x: ", o, val );
23 printf( "FAIL (%08x)\n", v2 );
25 printf( "ok\n" );
35 printf( "writ4: offset=%d value=%08x: ", o, val );
46 printf( "FAIL (%08x)\n", v2 );
48 printf( "ok\n" );
61 printf( "read2: offset=%d value=%08x: ", o, val );
67 printf( "FAIL (%04x)\n", v2 );
69 printf( "ok\n" );
79 printf( "writ
[all...]
H A Dtest_arc4random.c37 printf("%u\n", arc4random());
/system/core/toolbox/
H A Dlsusb.c46 printf(" Device Descriptor\n");
47 printf("\tbcdUSB: %04x\n", letoh16(desc->bcdUSB));
48 printf("\tbDeviceClass: %02x\n", desc->bDeviceClass);
49 printf("\tbDeviceSubClass: %02x\n", desc->bDeviceSubClass);
50 printf("\tbDeviceProtocol: %02x\n", desc->bDeviceProtocol);
51 printf("\tbMaxPacketSize0: %02x\n", desc->bMaxPacketSize0);
52 printf("\tidVendor: %04x\n", letoh16(desc->idVendor));
53 printf("\tidProduct: %04x\n", letoh16(desc->idProduct));
54 printf("\tbcdDevice: %04x\n", letoh16(desc->bcdDevice));
55 printf("\tiManufacture
[all...]
H A Dgetenforce.c13 printf("Disabled\n");
25 printf("Enforcing\n");
27 printf("Permissive\n");
H A Did.c17 printf("%d(%s)", uid, pw->pw_name);
19 printf("%d",uid);
27 printf("%d(%s)", gid, gr->gr_name);
29 printf("%d",gid);
44 printf("uid=");
46 printf(" gid=");
49 printf(" groups=");
52 printf(",");
58 printf(" context=%s", secctx);
62 printf("\
[all...]
H A Dprintenv.c15 printf("%s\n", *e);
22 printf("%s\n", v);
H A Drenice.c51 printf("pid %d's priority: %d\n", pid, getpriority(PRIO_PROCESS, pid));
53 printf("scheduling class: ");
57 printf("FIFO\n");
60 printf("RR\n");
63 printf("Normal\n");
69 printf("Unknown\n");
73 printf("RT prio: %d (of %d to %d)\n", sp.sched_priority,
/system/extras/tests/bionic/libc/bionic/
H A Dtest_pthread_cond.c15 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
16 printf("1 waiting for cond1\n");
20 printf("Thread 1 done.\n");
27 printf("Thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
28 printf("2 waiting for cond2\n");
33 printf("Thread 2 done.\n");
40 printf("Thread 3 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
41 printf("3 waiting for cond1\n");
45 printf("3 Sleeping\n");
47 printf("
[all...]
H A Dtest_cond.c41 printf("1: obtaining mutex\n");
43 printf("1: waiting on condition variable\n");
45 printf("1: releasing mutex\n");
47 printf("1: exiting\n");
55 printf("2: obtaining mutex\n");
57 printf("2: signaling\n");
59 printf("2: releasing mutex\n");
63 printf("2: exiting\n");
81 printf("main: creating thread %d\n", nn+1);
83 printf("mai
[all...]
H A Dtest_pthread_create.c8 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
15 printf("thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
28 printf("OK\n");
H A Dtest_static_init.cpp15 printf("KO (counter(shared) == %d, expected 1)\n", c);
24 printf("KO (counter(executable) == %d, expected 2)\n", c);
28 printf("OK\n");
H A Dtest_relocs.c18 printf( "func1() returns %d: %s\n", f1, (f1 == expect1) ? "OK" : "FAIL" );
19 printf( "func2() returns %d: %s\n", f2, (f2 == expect2) ? "OK" : "FAIL" );
/system/bluetooth/tools/
H A Dbttest.c30 printf("= %d\n", ret);
37 printf("= %d\n", ret);
44 printf("= %d\n", ret);
61 printf("Usage:\n");
63 printf("\tbttest %s\n", function_table[i].name);
76 printf("%s\n", function_table[i].name);
H A Dpipetest.c28 if (events & POLLIN) printf("POLLIN ");
29 if (events & POLLPRI) printf("POLLPRI ");
30 if (events & POLLOUT) printf("POLLOUT ");
31 if (events & POLLERR) printf("POLLERR ");
32 if (events & POLLHUP) printf("POLLHUP ");
33 if (events & POLLNVAL) printf("POLLNVAL ");
34 printf("\n");
39 printf("%d: socketpair()\n", gettid());
41 printf("%d: socketpair() = %d\n", gettid(), ret);
42 if (ret) printf("\ter
[all...]
H A Dsock_shutdown_test.c101 printf("%d: socket()\n", gettid());
103 printf("%d: socket() = %d\n", gettid(), ret);
104 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno));
112 printf("%d: close(%d)\n", gettid(), fd);
114 printf("%d: close(%d) = %d\n", gettid(), fd, ret);
115 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno));
149 printf("%d: bind(%d)\n", gettid(), fd);
151 printf("%d: bind(%d) = %d\n", gettid(), fd, ret);
152 if (ret < 0) printf("\terr %d (%s)\n", errno, strerror(errno));
160 printf("
[all...]
H A Dasocket_test.c70 if (events & POLLIN) printf("POLLIN ");
71 if (events & POLLPRI) printf("POLLPRI ");
72 if (events & POLLOUT) printf("POLLOUT ");
73 if (events & POLLERR) printf("POLLERR ");
74 if (events & POLLHUP) printf("POLLHUP ");
75 if (events & POLLNVAL) printf("POLLNVAL ");
76 printf("\n");
82 printf("%d ", ufds[i].fd);
119 printf("%d: socket()\n", gettid());
121 printf("
[all...]
/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c132 #undef printf macro
133 #define printf ALOGD macro
398 printf("Usage %s:\n", argv0);
399 printf("\t<-d> to print a debug log\n");
400 printf("\t<--patchram patchram_file>\n");
401 printf("\t<--baudrate baud_rate>\n");
402 printf("\t<--bd_addr bd_address>\n");
403 printf("\t<--enable_lpm>\n");
404 printf("\t<--enable_hci>\n");
405 printf("\
[all...]

Completed in 1834 milliseconds

1234567