/external/clang/test/Sema/ |
D | format-strings.c | 11 int printf(const char *restrict, ...); // expected-note{{passing argument to parameter here}} 31 printf(s); // expected-warning {{format string is not a string literal}} in check_string_literal() 50 printf("abc" in check_string_literal() 52 printf("abc\ in check_string_literal() 59 printf("%*d", (unsigned) 1, 1); // no-warning in check_string_literal() 71 printf(s); // expected-warning {{format string is not a string literal}} in check_string_literal2() 85 printf(i == 1 ? "yes" : "no"); // no-warning in check_conditional_literal() 86 printf(i == 0 ? (i == 1 ? "yes" : "no") : "dont know"); // no-warning in check_conditional_literal() 87 …printf(i == 0 ? (i == 1 ? s : "no") : "dont know"); // expected-warning{{format string is not a st… in check_conditional_literal() 88 printf("yes" ?: "no %d", 1); // expected-warning{{data argument not used by format string}} in check_conditional_literal() [all …]
|
D | format-strings-enum-fixed-type.cpp | 11 EXTERN_C int printf(const char *,...); 19 …printf("%hhd", input); // expected-warning{{format specifies type 'char' but the argument has unde… in test() 20 printf("%hhd", Constant); // expected-warning{{format specifies type 'char'}} in test() 22 printf("%hd", input); // no-warning in test() 23 printf("%hd", Constant); // no-warning in test() 26 printf("%d", input); // no-warning in test() 27 printf("%d", Constant); // no-warning in test() 29 …printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has… in test() 30 printf("%lld", Constant); // expected-warning{{format specifies type 'long long'}} in test() 37 …printf("%u", input); // expected-warning{{format specifies type 'unsigned int' but the argument ha… in testLong() [all …]
|
D | format-strings-fixit.c | 11 int printf(char const *, ...); 21 printf("%s", (int) 123); in test() 22 printf("abc%0f", "testing testing 123"); in test() 23 printf("%u", (long) -12); in test() 24 printf("%p", 123); in test() 25 printf("%c\n", "x"); in test() 26 printf("%c\n", 1.23); in test() 29 printf("%+.2d", (unsigned long long) 123456); in test() 30 printf("%1d", (long double) 1.23); in test() 33 printf("%0+s", (unsigned) 31337); // 0 flag should stay in test() [all …]
|
D | format-strings-ms.c | 4 int printf(const char *format, ...) __attribute__((format(printf, 1, 2))); 12 printf("%Id", i32); // expected-warning{{'I' length modifier is not supported by ISO C}} in non_iso_warning_test() 13 printf("%I32d", i32); // expected-warning{{'I32' length modifier is not supported by ISO C}} in non_iso_warning_test() 14 printf("%I64d", i64); // expected-warning{{'I64' length modifier is not supported by ISO C}} in non_iso_warning_test() 15 printf("%wc", c); // expected-warning{{'w' length modifier is not supported by ISO C}} in non_iso_warning_test() 16 printf("%Z", p); // expected-warning{{'Z' conversion specifier is not supported by ISO C}} in non_iso_warning_test() 23 …printf("val = %I64d\n", val); // expected-warning{{format specifies type '__int64' (aka 'long long… in signed_test() 25 …printf("val = %I32d\n", bigval); // expected-warning{{format specifies type '__int32' (aka 'int') … in signed_test() 26 …printf("val = %Id\n", bigval); // expected-warning{{format specifies type '__int32' (aka 'int') bu… in signed_test() 31 …printf("val = %I64u\n", val); // expected-warning{{format specifies type 'unsigned __int64' (aka '… in unsigned_test() [all …]
|
/external/valgrind/none/tests/arm64/ |
D | cvtf_imm.c | 234 printf("\nscvtf_d_x_imm1\n"); in main() 235 printf("%18.12e\n", do_scvtf_d_x_imm1(0xFFFFFFFFFFFFFFFFUL)); in main() 236 printf("%18.12e\n", do_scvtf_d_x_imm1(0)); in main() 237 printf("%18.12e\n", do_scvtf_d_x_imm1(0x7FFFFFFFFFFFFFFFUL)); in main() 238 printf("%18.12e\n", do_scvtf_d_x_imm1(1234)); in main() 239 printf("%18.12e\n", do_scvtf_d_x_imm1(-1234)); in main() 240 printf("%18.12e\n", do_scvtf_d_x_imm1(0x8000000000000000UL)); in main() 242 printf("\nscvtf_d_x_imm32\n"); in main() 243 printf("%18.12e\n", do_scvtf_d_x_imm32(0xFFFFFFFFFFFFFFFFUL)); in main() 244 printf("%18.12e\n", do_scvtf_d_x_imm32(0)); in main() [all …]
|
/external/valgrind/none/tests/mips32/ |
D | test_math.cpp | 16 printf("fesetround(FE_UPWARD)\n"); in main() 17 printf("lrint(1234.01): %ld\n", lrint(1234.01)); in main() 18 printf("lrintf(1234.01f): %ld\n", lrintf(1234.01f)); in main() 19 printf("lrintl(1234.01): %ld\n", lrintl(1234.01)); in main() 21 printf("fesetround(FE_TOWARDZERO)\n"); in main() 22 printf("lrint(1234.01): %ld\n", lrint(1234.01)); in main() 23 printf("lrintf(1234.01f): %ld\n", lrintf(1234.01f)); in main() 24 printf("lrintl(1234.01): %ld\n", lrintl(1234.01)); in main() 26 printf("fesetround(FE_UPWARD)\n"); in main() 27 printf("llrint(1234.01): %lld\n", llrint(1234.01)); in main() [all …]
|
/external/valgrind/none/tests/mips64/ |
D | test_math.cpp | 16 printf("fesetround(FE_UPWARD)\n"); in main() 17 printf("lrint(1234.01): %ld\n", lrint(1234.01)); in main() 18 printf("lrintf(1234.01f): %ld\n", lrintf(1234.01f)); in main() 19 printf("lrintl(1234.01): %ld\n", lrintl(1234.01)); in main() 21 printf("fesetround(FE_TOWARDZERO)\n"); in main() 22 printf("lrint(1234.01): %ld\n", lrint(1234.01)); in main() 23 printf("lrintf(1234.01f): %ld\n", lrintf(1234.01f)); in main() 24 printf("lrintl(1234.01): %ld\n", lrintl(1234.01)); in main() 26 printf("fesetround(FE_UPWARD)\n"); in main() 27 printf("llrint(1234.01): %lld\n", llrint(1234.01)); in main() [all …]
|
D | round.c | 15 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode() 16 printf("fcsr: 0x%x\n", fcsr); in directedRoundingMode() 20 printf("%s %d %lf\n", flt_dir_op_names[op], fd_w, fs_d[i]); in directedRoundingMode() 21 printf("fcsr: 0x%x\n", fcsr); in directedRoundingMode() 25 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode() 26 printf("fcsr: 0x%x\n", fcsr); in directedRoundingMode() 30 printf("%s %d %lf\n", flt_dir_op_names[op], fd_w, fs_d[i]); in directedRoundingMode() 31 printf("fcsr: 0x%x\n", fcsr); in directedRoundingMode() 35 printf("%s %d %f\n", flt_dir_op_names[op], fd_w, fs_f[i]); in directedRoundingMode() 36 printf("fcsr: 0x%x\n", fcsr); in directedRoundingMode() [all …]
|
/external/clang/test/CodeGenCXX/ |
D | predefined-expr.cpp | 103 int printf(const char * _Format, ...); 108 printf("__func__ %s\n", __func__); in topLevelNamespaceFunction() 109 printf("__FUNCTION__ %s\n", __FUNCTION__); in topLevelNamespaceFunction() 110 printf("__PRETTY_FUNCTION__ %s\n\n", __PRETTY_FUNCTION__); in topLevelNamespaceFunction() 119 printf("__func__ %s\n", __func__); in anonymousNamespaceFunction() 120 printf("__FUNCTION__ %s\n", __FUNCTION__); in anonymousNamespaceFunction() 121 printf("__PRETTY_FUNCTION__ %s\n\n", __PRETTY_FUNCTION__); in anonymousNamespaceFunction() 133 printf("__func__ %s\n", __func__); in classTemplateFunction() 134 printf("__FUNCTION__ %s\n", __FUNCTION__); in classTemplateFunction() 135 printf("__PRETTY_FUNCTION__ %s\n\n", __PRETTY_FUNCTION__); in classTemplateFunction() [all …]
|
/external/google-breakpad/src/processor/ |
D | dump_context.cc | 278 printf("MDRawContextX86\n"); in Print() 279 printf(" context_flags = 0x%x\n", in Print() 281 printf(" dr0 = 0x%x\n", context_x86->dr0); in Print() 282 printf(" dr1 = 0x%x\n", context_x86->dr1); in Print() 283 printf(" dr2 = 0x%x\n", context_x86->dr2); in Print() 284 printf(" dr3 = 0x%x\n", context_x86->dr3); in Print() 285 printf(" dr6 = 0x%x\n", context_x86->dr6); in Print() 286 printf(" dr7 = 0x%x\n", context_x86->dr7); in Print() 287 printf(" float_save.control_word = 0x%x\n", in Print() 289 printf(" float_save.status_word = 0x%x\n", in Print() [all …]
|
/external/libmtp/examples/ |
D | hotplug.c | 90 printf("# UDEV-style hotplug map for libmtp\n"); in main() 91 printf("# Put this file in /etc/udev/rules.d\n\n"); in main() 92 printf("ACTION!=\"add\", GOTO=\"libmtp_rules_end\"\n"); in main() 93 printf("ENV{MAJOR}!=\"?*\", GOTO=\"libmtp_rules_end\"\n"); in main() 94 printf("SUBSYSTEM==\"usb\", GOTO=\"libmtp_usb_rules\"\n" in main() 101 …printf("# This usermap will call the script \"libmtp.sh\" whenever a known MTP device is attached.… in main() 104 printf("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?> <!-- -*- SGML -*- -->\n"); in main() 105 printf("<!-- This file was generated by %s - - fdi -->\n", argv[0]); in main() 106 printf("<deviceinfo version=\"0.2\">\n"); in main() 107 printf(" <device>\n"); in main() [all …]
|
/external/tcpdump/ |
D | print-rx.c | 457 printf(" [|rx] (%d)", length); in rx_print() 463 printf(" rx %s", tok2str(rx_types, "type %d", rxh->type)); in rx_print() 469 printf(" cid %08x call# %d", in rx_print() 473 printf(" seq %d ser %d", in rx_print() 478 printf(" secindex %d serviceid %hu", in rx_print() 489 printf(" "); in rx_print() 491 printf(","); in rx_print() 493 printf("<%s>", rx_flags[i].s); in rx_print() 594 printf(" (%d)", length); in rx_print() 676 printf(" fid %d/%d/%d", (int) n1, (int) n2, (int) n3); \ [all …]
|
D | print-pim.c | 132 (void)printf(" RPF %s ", ipaddr_string(bp)); in pimv1_join_prune_print() 135 (void)printf("Hold "); in pimv1_join_prune_print() 138 (void)printf("%s (%s/%d, %s", njoin ? "Join" : "Prune", in pimv1_join_prune_print() 142 (void)printf("/%s", ipaddr_string(&bp[16])); in pimv1_join_prune_print() 143 (void)printf(") %s%s %s", in pimv1_join_prune_print() 152 (void)printf("\n"); in pimv1_join_prune_print() 153 (void)printf(" Upstream Nbr: %s", ipaddr_string(bp)); in pimv1_join_prune_print() 156 (void)printf("\n"); in pimv1_join_prune_print() 157 (void)printf(" Hold time: "); in pimv1_join_prune_print() 174 (void)printf("\n\tGroup: %s", ipaddr_string(bp)); in pimv1_join_prune_print() [all …]
|
D | print-dhcp6.c | 361 printf(" (%s", dhcp6opt_name(opttype)); in dhcp6opt_print() 367 printf(" ?)"); in dhcp6opt_print() 374 printf(" hwaddr/time type %u time %u ", in dhcp6opt_print() 378 printf("%02x", tp[i]); in dhcp6opt_print() 380 printf(")"); in dhcp6opt_print() 383 printf(" ?)"); in dhcp6opt_print() 388 printf(" vid "); in dhcp6opt_print() 390 printf("%02x", tp[i]); in dhcp6opt_print() 392 printf(")"); in dhcp6opt_print() 395 printf(" ?)"); in dhcp6opt_print() [all …]
|
D | print-ip6opts.c | 93 printf(", pad1"); in ip6_sopt_print() 97 printf(", padn: trunc"); in ip6_sopt_print() 100 printf(", padn"); in ip6_sopt_print() 104 printf(", ui: trunc"); in ip6_sopt_print() 107 printf(", ui: 0x%04x ", EXTRACT_16BITS(&bp[i + 2])); in ip6_sopt_print() 111 printf(", altcoa: trunc"); in ip6_sopt_print() 114 printf(", alt-CoA: %s", ip6addr_string(&bp[i+2])); in ip6_sopt_print() 118 printf(", auth: trunc"); in ip6_sopt_print() 121 printf(", auth spi: 0x%08x", EXTRACT_32BITS(&bp[i + 2])); in ip6_sopt_print() 125 printf(", sopt_type %d: trunc)", bp[i]); in ip6_sopt_print() [all …]
|
/external/libxml2/doc/examples/ |
D | testWriter.c | 78 printf("testXmlwriterFilename: Error creating the xml writer\n"); in testXmlwriterFilename() 87 printf in testXmlwriterFilename() 96 printf in testXmlwriterFilename() 109 printf in testXmlwriterFilename() 118 printf in testXmlwriterFilename() 127 printf in testXmlwriterFilename() 136 printf in testXmlwriterFilename() 147 printf in testXmlwriterFilename() 156 printf in testXmlwriterFilename() 165 printf in testXmlwriterFilename() [all …]
|
/external/valgrind/none/tests/s390x/ |
D | dfptest.c | 62 printf("%d", TEST_128(".insn rxe, 0xed0000000058", +0.0DF, 1UL<<i)); in main() 63 printf("%d", TEST_128(".insn rxe, 0xed0000000058", -0.0DF, 1UL<<i)); in main() 64 printf("%d", TEST_128(".insn rxe, 0xed0000000058", +2.2DF, 1UL<<i)); in main() 65 printf("%d", TEST_128(".insn rxe, 0xed0000000058", -2.2DF, 1UL<<i)); in main() 66 printf("%d", TEST_128(".insn rxe, 0xed0000000058",+DEC_INFINITY,1UL<<i)); in main() 67 printf("%d", TEST_128(".insn rxe, 0xed0000000058",-DEC_INFINITY,1UL<<i)); in main() 68 printf("%d", TEST_128(".insn rxe, 0xed0000000058", +DEC_NAN, 1UL<<i)); in main() 69 printf("%d", TEST_128(".insn rxe, 0xed0000000058", -DEC_NAN, 1UL<<i)); in main() 72 printf("%d", TEST_128(".insn rxe, 0xed0000000059", +0.0DF, 1UL<<i)); in main() 73 printf("%d", TEST_128(".insn rxe, 0xed0000000059", -0.0DF, 1UL<<i)); in main() [all …]
|
D | fpext.c | 29 printf(#insn " %f\n", L2F(insn, 0, f32, round)); \ 30 printf(#insn " %f\n", L2F(insn, 1, f32, round)); \ 31 printf(#insn " %f\n", L2F(insn, 0xffffffffUL, f32, round)); \ 32 printf(#insn " %f\n", L2F(insn, 0x80000000UL, f32, round)); \ 33 printf(#insn " %f\n", L2F(insn, 0x7fffffffUL, f32, round)); \ 34 printf(#insn " %f\n", L2F(insn, 0x100000000UL, f32, round)); \ 35 printf(#insn " %f\n", L2F(insn, 0xffffffffffffffffUL, f32, round)); \ 36 printf(#insn " %f\n", L2F(insn, 0x8000000000000000UL, f32, round)); \ 37 printf(#insn " %f\n", L2F(insn, 0x7fffffffffffffffUL, f32, round)); \ 43 printf(#insn " %f\n", L2F(insn, 0, f64, round)); \ [all …]
|
D | tcxb.c | 51 printf("%d", tcxb(+0.0l, 1UL<<i)); in main() 52 printf("%d", tcxb(-0.0l, 1UL<<i)); in main() 53 printf("%d", tcxb(+2.2l, 1UL<<i)); in main() 54 printf("%d", tcxb(-2.2l, 1UL<<i)); in main() 55 printf("%d", tcxb(+INFINITY, 1UL<<i)); in main() 56 printf("%d", tcxb(-INFINITY, 1UL<<i)); in main() 57 printf("%d", tcxb(+NAN, 1UL<<i)); in main() 58 printf("%d", tcxb(-NAN, 1UL<<i)); in main() 61 printf("%d", tcdb(+0.0l, 1UL<<i)); in main() 62 printf("%d", tcdb(-0.0l, 1UL<<i)); in main() [all …]
|
/external/toybox/toys/pending/ |
D | ipcs.c | 62 printf("\nMessage Queue msqid=%d\n" in show_msg_id() 65 printf ("cbytes=%ld\tqbytes=%ld\tqnum=%ld\tlspid=%d\tlrpid=%d\n", in show_msg_id() 69 printf("send_time=%-26.24s\nrcv_time=%-26.24s\nchange_time=%-26.24s\n\n", in show_msg_id() 89 printf("\nSemaphore Array semid=%d\n" in show_sem_id() 99 printf("ctime = %-26.24s\n" in show_sem_id() 113 printf("%-10d %-10d %-10d %-10d %-10d\n", i, val, nc, zc, pid); in show_sem_id() 130 printf("\nShared memory Segment shmid=%d\n" in show_shm_id() 139 printf("att_time=%-26.24s\n", in show_shm_id() 141 printf("det_time=%-26.24s\n", in show_shm_id() 143 printf("change_time=%-26.24s\n\n", ctime(&buf.shm_ctime)); in show_shm_id() [all …]
|
/external/libdrm/tests/modeprint/ |
D | modeprint.c | 72 printf("Mode: %s\n", mode->name); in printMode() 73 printf("\tclock : %i\n", mode->clock); in printMode() 74 printf("\thdisplay : %i\n", mode->hdisplay); in printMode() 75 printf("\thsync_start : %i\n", mode->hsync_start); in printMode() 76 printf("\thsync_end : %i\n", mode->hsync_end); in printMode() 77 printf("\thtotal : %i\n", mode->htotal); in printMode() 78 printf("\thskew : %i\n", mode->hskew); in printMode() 79 printf("\tvdisplay : %i\n", mode->vdisplay); in printMode() 80 printf("\tvsync_start : %i\n", mode->vsync_start); in printMode() 81 printf("\tvsync_end : %i\n", mode->vsync_end); in printMode() [all …]
|
/external/libcap-ng/libcap-ng-0.7/utils/ |
D | captest.c | 62 printf("Error getting capabilities\n"); in report() 73 printf("Attempting to regain root..."); in report() 77 printf("SUCCESS - PRIVILEGE ESCALATION POSSIBLE\n"); in report() 82 printf("FAILED\n"); in report() 84 printf("Child "); in report() 86 printf("User credentials uid:%d euid:%d suid:%d\n", uid, euid, suid); in report() 88 printf("Child "); in report() 89 printf("Group credentials gid:%d egid:%d sgid:%d\n", gid, egid, sgid); in report() 91 printf("Note: app has mismatching credentials!!\n"); in report() 97 printf("Child capabilities: none\n"); in report() [all …]
|
/external/mesa3d/src/glsl/ |
D | ir_print_visitor.cpp | 48 printf("(structure (%s) (%s@%p) (%u) (\n", in _mesa_print_ir() 52 printf("\t(("); in _mesa_print_ir() 54 printf(")(%s))\n", s->fields.structure[j].name); in _mesa_print_ir() 57 printf(")\n"); in _mesa_print_ir() 61 printf("(\n"); in _mesa_print_ir() 66 printf("\n"); in _mesa_print_ir() 68 printf("\n)"); in _mesa_print_ir() 90 printf(" "); in indent() 127 printf("(array "); in print_type() 129 printf(" %u)", t->length); in print_type() [all …]
|
/external/android-clat/ |
D | dump.c | 46 printf("IP packet\n"); in dump_ip() 47 printf("header_len = %x\n",header->ihl); in dump_ip() 48 printf("version = %x\n",header->version); in dump_ip() 49 printf("tos = %x\n",header->tos); in dump_ip() 50 printf("tot_len = %x\n",ntohs(header->tot_len)); in dump_ip() 51 printf("id = %x\n",ntohs(header->id)); in dump_ip() 52 printf("frag: "); in dump_ip() 54 printf("(RF) "); in dump_ip() 57 printf("DF "); in dump_ip() 60 printf("MF "); in dump_ip() [all …]
|
/external/lldb/test/types/ |
D | basic_type.cpp | 126 printf ("%s: a = '" T_PRINTF_FORMAT "'\n", T_CSTR, a); in main() 127 printf ("%s*: %p => *a_ptr = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_ptr, *a_ptr); in main() 128 printf ("%s&: @%p => a_ref = '" T_PRINTF_FORMAT "'\n", T_CSTR, &a_ref, a_ref); in main() 130 printf ("%s[2]: a_array_bounded[0] = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_array_bounded[0]); in main() 131 printf ("%s[2]: a_array_bounded[1] = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_array_bounded[1]); in main() 133 printf ("%s[]: a_array_unbounded[0] = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_array_unbounded[0]); in main() 134 printf ("%s[]: a_array_unbounded[1] = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_array_unbounded[1]); in main() 136 printf ("(a_class) a_class_instance.m_a = '" T_PRINTF_FORMAT "'\n", a_class_instance.get_a()); in main() 137 printf ("(a_class) a_class_instance.m_b = '" T_PRINTF_FORMAT "'\n", a_class_instance.get_b()); in main() 138 …printf ("(a_class*) a_class_ptr = %p, a_class_ptr->m_a = '" T_PRINTF_FORMAT "'\n", a_class_ptr, a_… in main() [all …]
|