Home
last modified time | relevance | path

Searched refs:sprintf (Results 1 – 25 of 1782) sorted by relevance

12345678910>>...72

/external/llvm-project/clang/test/Sema/
Dwarn-fortify-source.c12 extern int sprintf(char *str, const char *format, ...);
140sprintf(buf, "hell\0 boy"); // expected-warning {{format string contains '\0' within the string bo… in call_sprintf()
141sprintf(buf, "hello b\0y"); // expected-warning {{format string contains '\0' within the string bo… in call_sprintf()
143 sprintf(buf, "hello"); in call_sprintf()
144sprintf(buf, "hello!"); // expected-warning {{'sprintf' will always overflow; destination buffer h… in call_sprintf()
145 sprintf(buf, "1234%%"); in call_sprintf()
146sprintf(buf, "12345%%"); // expected-warning {{'sprintf' will always overflow; destination buffer … in call_sprintf()
147 sprintf(buf, "1234%c", '9'); in call_sprintf()
148sprintf(buf, "12345%c", '9'); // expected-warning {{'sprintf' will always overflow; destination bu… in call_sprintf()
149 sprintf(buf, "1234%d", 9); in call_sprintf()
[all …]
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dr300_fragprog.c38 sprintf(out, "bias"); in presub_string()
41 sprintf(out, "sub"); in presub_string()
44 sprintf(out, "add"); in presub_string()
47 sprintf(out, "inv "); in presub_string()
143 sprintf(srcc[j], "%c%i", in r300FragmentProgramDump()
145 sprintf(srca[j], "%c%i", in r300FragmentProgramDump()
150 sprintf(flags, "%s%s%s", in r300FragmentProgramDump()
162 sprintf(dstc, "t%i.%s ", in r300FragmentProgramDump()
168 sprintf(flags, "%s%s%s", in r300FragmentProgramDump()
176 sprintf(tmp, "o%i.%s", in r300FragmentProgramDump()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_debug_describe.c44 sprintf(buf, "pipe_buffer<%u>", (unsigned)util_format_get_stride(ptr->format, ptr->width0)); in debug_describe_resource()
47sprintf(buf, "pipe_texture1d<%u,%s,%u>", ptr->width0, util_format_short_name(ptr->format), ptr->la… in debug_describe_resource()
50sprintf(buf, "pipe_texture2d<%u,%u,%s,%u>", ptr->width0, ptr->height0, util_format_short_name(ptr-… in debug_describe_resource()
53sprintf(buf, "pipe_texture_rect<%u,%u,%s>", ptr->width0, ptr->height0, util_format_short_name(ptr-… in debug_describe_resource()
56sprintf(buf, "pipe_texture_cube<%u,%u,%s,%u>", ptr->width0, ptr->height0, util_format_short_name(p… in debug_describe_resource()
59sprintf(buf, "pipe_texture3d<%u,%u,%u,%s,%u>", ptr->width0, ptr->height0, ptr->depth0, util_format… in debug_describe_resource()
62sprintf(buf, "pipe_texture_1darray<%u,%u,%s,%u>", ptr->width0, ptr->array_size, util_format_short_… in debug_describe_resource()
65sprintf(buf, "pipe_texture_2darray<%u,%u,%u,%s,%u>", ptr->width0, ptr->height0, ptr->array_size, u… in debug_describe_resource()
68sprintf(buf, "pipe_texture_cubearray<%u,%u,%u,%s,%u>", ptr->width0, ptr->height0, ptr->array_size,… in debug_describe_resource()
71 sprintf(buf, "pipe_martian_resource<%u>", ptr->target); in debug_describe_resource()
[all …]
/external/scapy/scapy/contrib/
Dsebek.py31 return self.sprintf("Sebek Header v%SebekHead.version% %SebekHead.type%")
46 return self.underlayer.sprintf("Sebek v1 %SebekHead.type% (%SebekV1.cmd%)")
48 return self.sprintf("Sebek v1 (%SebekV1.cmd%)")
62 … return self.underlayer.sprintf("Sebek v%SebekHead.version% %SebekHead.type% (%SebekV3.cmd%)")
64 return self.sprintf("Sebek v3 (%SebekV3.cmd%)")
69 … return self.underlayer.sprintf("Sebek v%SebekHead.version% %SebekHead.type% (%SebekV2.cmd%)")
71 return self.sprintf("Sebek v2 (%SebekV2.cmd%)")
94 … return self.underlayer.sprintf("Sebek v%SebekHead.version% %SebekHead.type% (%SebekV3Sock.cmd%)")
96 return self.sprintf("Sebek v3 socket (%SebekV3Sock.cmd%)")
101 … return self.underlayer.sprintf("Sebek v%SebekHead.version% %SebekHead.type% (%SebekV2Sock.cmd%)")
[all …]
/external/compiler-rt/lib/BlocksRuntime/
Druntime.c625 sprintf(cp, "NULL passed to _Block_dump\n"); in _Block_dump()
632 cp += sprintf(cp, "^%p (new layout) =\n", (void *)closure); in _Block_dump()
634 cp += sprintf(cp, "isa: NULL\n"); in _Block_dump()
637 cp += sprintf(cp, "isa: stack Block\n"); in _Block_dump()
640 cp += sprintf(cp, "isa: malloc heap Block\n"); in _Block_dump()
643 cp += sprintf(cp, "isa: GC heap Block\n"); in _Block_dump()
646 cp += sprintf(cp, "isa: global Block\n"); in _Block_dump()
649 cp += sprintf(cp, "isa: finalizing Block\n"); in _Block_dump()
652 cp += sprintf(cp, "isa?: %p\n", (void *)closure->isa); in _Block_dump()
654 cp += sprintf(cp, "flags:"); in _Block_dump()
[all …]
/external/llvm-project/compiler-rt/lib/BlocksRuntime/
Druntime.c625 sprintf(cp, "NULL passed to _Block_dump\n"); in _Block_dump()
632 cp += sprintf(cp, "^%p (new layout) =\n", (void *)closure); in _Block_dump()
634 cp += sprintf(cp, "isa: NULL\n"); in _Block_dump()
637 cp += sprintf(cp, "isa: stack Block\n"); in _Block_dump()
640 cp += sprintf(cp, "isa: malloc heap Block\n"); in _Block_dump()
643 cp += sprintf(cp, "isa: GC heap Block\n"); in _Block_dump()
646 cp += sprintf(cp, "isa: global Block\n"); in _Block_dump()
649 cp += sprintf(cp, "isa: finalizing Block\n"); in _Block_dump()
652 cp += sprintf(cp, "isa?: %p\n", (void *)closure->isa); in _Block_dump()
654 cp += sprintf(cp, "flags:"); in _Block_dump()
[all …]
/external/OpenCSD/decoder/source/
Dtrc_printable_elem.cpp77 sprintf(szFormatBuffer,"%%0%dllX",validChars); // create the format in getValStr()
78 sprintf(szStrBuffer,szFormatBuffer,value); // fill the buffer in getValStr()
82 sprintf(szFormatBuffer,"%%0%dlX",validChars); // create the format in getValStr()
83 sprintf(szStrBuffer,szFormatBuffer,(uint32_t)value); // fill the buffer in getValStr()
88 sprintf(szStrBuffer," (%d:0)", valValidBits-1); in getValStr()
96 sprintf(szStrBuffer," ~[0x%" PRIX64 "]",value & updateMask); in getValStr()
107 sprintf(szStrBuffer,"%" PRIu64 ,value); in getValStr()
111 sprintf(szStrBuffer,"%" PRIu32 ,(uint32_t)value); in getValStr()
116 sprintf(szStrBuffer," (%d:0)", valValidBits-1); in getValStr()
/external/ltp/testcases/kernel/syscalls/open/
Dopen07.c164 sprintf(file1, "open03.1.%d", getpid()); in setupfunc_test1()
165 sprintf(file2, "open03.2.%d", getpid()); in setupfunc_test1()
177 sprintf(file1, "open03.3.%d", getpid()); in setupfunc_test2()
178 sprintf(file2, "open03.4.%d", getpid()); in setupfunc_test2()
190 sprintf(file1, "open03.5.%d", getpid()); in setupfunc_test3()
191 sprintf(file2, "open03.6.%d", getpid()); in setupfunc_test3()
192 sprintf(file3, "open03.7.%d", getpid()); in setupfunc_test3()
206 sprintf(file1, "open03.8.%d", getpid()); in setupfunc_test4()
207 sprintf(file2, "open03.9.%d", getpid()); in setupfunc_test4()
208 sprintf(file3, "open03.10.%d", getpid()); in setupfunc_test4()
[all …]
/external/ltp/lib/
Dtlibio.c639 sprintf(Errormsg, in lio_write_buffer()
723 sprintf(Lio_SysCall, "write(%d, buf, %d)", fd, size); in lio_write_buffer()
733 sprintf(Errormsg, in lio_write_buffer()
742 sprintf(Errormsg, in lio_write_buffer()
764 sprintf(Lio_SysCall, in lio_write_buffer()
775 sprintf(Errormsg, in lio_write_buffer()
784 sprintf(Lio_SysCall, in lio_write_buffer()
797 sprintf(Errormsg, in lio_write_buffer()
823 sprintf(Lio_SysCall, in lio_write_buffer()
834 sprintf(Errormsg, in lio_write_buffer()
[all …]
/external/dng_sdk/source/
Ddng_parse_utils.cpp133 sprintf (s, "SubIFD %u", (unsigned) (parentCode - tcFirstSubIFD + 1)); in LookupParentCode()
141 sprintf (s, "Chained IFD %u", (unsigned) (parentCode - tcFirstChainedIFD + 1)); in LookupParentCode()
148 sprintf (s, "ParentIFD %u", (unsigned) parentCode); in LookupParentCode()
535 sprintf (s, "CRW_%04X", (unsigned) tagCode); in LookupTagCode()
551 sprintf (s, "MRW%c%c%c%c", c1, c2, c3, c4); in LookupTagCode()
557 sprintf (s, "RAF1_%04X", (unsigned) tagCode); in LookupTagCode()
562 sprintf (s, "RAF2_%04X", (unsigned) tagCode); in LookupTagCode()
567 sprintf (s, "Tag%u", (unsigned) tagCode); in LookupTagCode()
610 sprintf (s, "Type%u", (unsigned) tagType); in LookupTagType()
642 sprintf (s, "%u", (unsigned) key); in LookupNewSubFileType()
[all …]
/external/OpenCL-CTS/test_conformance/relationals/
Dtest_shuffles.cpp254sprintf( inOrderStr, "%d.%s", (int)inVecSize, get_order_string( inOrder, outVecSize, lengthToUse, … in get_order_name()
258sprintf( outOrderStr, "%d.%s", (int)outVecSize, get_order_string( outOrder, outVecSize, lengthToUs… in get_order_name()
260 sprintf( orderName, "order %s%s -> %s%s", in get_order_name()
271 sprintf(error, "%s%s%02x ",error, ( j % typeSize ) ? "" : " ", (cl_uchar)inDataPtr[ j ] ); in print_hex_mem_dump()
278sprintf(error, "%s%s%02x ",error, ( j % typeSize ) ? "" : " ", (cl_uchar)inDataPtr2[ j ] ); in print_hex_mem_dump()
284 sprintf(error, "%s%s%02x ",error, ( j % typeSize ) ? "" : " ", (cl_uchar)expected[ j ] ); in print_hex_mem_dump()
289 sprintf(error, "%s%s%02x ",error, ( j % typeSize ) ? "" : " ", (cl_uchar)outDataPtr[ j ] ); in print_hex_mem_dump()
302 sprintf( thisMask, "%s%d", ( jj == 0 ) ? "" : ", ", (*order)[ jj ] ); in generate_shuffle_mask()
311 sprintf( thisMask, "%s%ld", ( jj == 0 ) ? "" : ", ", jj ); in generate_shuffle_mask()
335 sprintf( inSizeName, "%ld", inVecSize ); in create_shuffle_kernel()
[all …]
/external/ltp/testcases/misc/math/float/trigo/
Dgentrigo.c80 sprintf(funct, "%s/gencos", bin_path); in main()
84 sprintf(funct, "%s/gensin", bin_path); in main()
88 sprintf(funct, "%s/gentan", bin_path); in main()
92 sprintf(funct, "%s/genatan", bin_path); in main()
96 sprintf(funct, "%s/genatan2", bin_path); in main()
100 sprintf(funct, "%s/genacos", bin_path); in main()
104 sprintf(funct, "%s/genasin", bin_path); in main()
/external/ltp/testcases/misc/math/float/exp_log/
Dgenexp_log.c79 sprintf(funct, "%s/genexp", bin_path); in main()
83 sprintf(funct, "%s/genlog", bin_path); in main()
87 sprintf(funct, "%s/genlog10", bin_path); in main()
91 sprintf(funct, "%s/genfrexp", bin_path); in main()
95 sprintf(funct, "%s/genldexp", bin_path); in main()
99 sprintf(funct, "%s/genhypot", bin_path); in main()
103 sprintf(funct, "%s/genmodf", bin_path); in main()
/external/llvm/test/Transforms/InstCombine/
Dsprintf-1.ll1 ; Test that the sprintf library call simplifier works correctly.
17 declare i32 @sprintf(i8*, i8*, ...)
19 ; Check sprintf(dst, fmt) -> llvm.memcpy(str, fmt, strlen(fmt) + 1, 1).
24 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
33 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
42 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
48 ; Check sprintf(dst, "%c", chr) -> *(i8*)dst = chr; *((i8*)dst + 1) = 0.
53 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8 104)
61 ; Check sprintf(dst, "%s", str) -> llvm.memcpy(dest, str, strlen(str) + 1, 1).
66 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
[all …]
/external/e2fsprogs/ext2ed/
Dgroup_com.c34 sprintf (buffer,"entry %ld",group_info.group_num+entry_offset); in type_ext2_group_desc___next()
50 sprintf (buffer,"entry %ld",group_info.group_num-entry_offset); in type_ext2_group_desc___prev()
74 sprintf (buffer,"setoffset %ld",device_offset);dispatch (buffer); in type_ext2_group_desc___entry()
103 sprintf (buffer,"setoffset %ld",device_offset);dispatch (buffer); in type_ext2_group_desc___gocopy()
142 sprintf (buffer,"setoffset block %ld",inode_offset);dispatch (buffer); in type_ext2_group_desc___inode()
143 sprintf (buffer,"settype ext2_inode");dispatch (buffer); in type_ext2_group_desc___inode()
156 sprintf (buffer,"setoffset block %ld",block_bitmap_offset);dispatch (buffer); in type_ext2_group_desc___blockbitmap()
157 sprintf (buffer,"settype block_bitmap");dispatch (buffer); in type_ext2_group_desc___blockbitmap()
170 sprintf (buffer,"setoffset block %ld",inode_bitmap_offset);dispatch (buffer); in type_ext2_group_desc___inodebitmap()
171 sprintf (buffer,"settype inode_bitmap");dispatch (buffer); in type_ext2_group_desc___inodebitmap()
Dext2_com.c39 sprintf (buffer,"setoffset %ld",file_system_info.super_block_offset);dispatch (buffer); in type_ext2___super()
40 sprintf (buffer,"settype ext2_super_block");dispatch (buffer); in type_ext2___super()
70 sprintf (temp,"cd %s",buffer+1);dispatch (temp); in type_ext2___cd()
95 sprintf (buffer,"setoffset %ld",file_system_info.first_group_desc_offset);dispatch (buffer); in type_ext2___group()
96 sprintf (buffer,"settype ext2_group_desc");dispatch (buffer); in type_ext2___group()
97 sprintf (buffer,"entry %ld",group_num);dispatch (buffer); in type_ext2___group()
/external/icu/icu4c/source/tools/pkgdata/
Dpkgdata.cpp537 sprintf(cmd, "bash -c \"%s\"", command); in runCommand()
540 sprintf(cmd, "QSH CMD('%s')", command); in runCommand()
692 sprintf(checkLibFile, "%s%s", targetDir, libFileNames[LIB_FILE_VERSION]); in pkg_executeOptions()
929 sprintf(libFileNames[LIB_FILE], "%s", libName); in createFileNames()
931 sprintf(libFileNames[LIB_FILE], "%s%s%s", in createFileNames()
937 sprintf(libFileNames[LIB_FILE], "%s%s", in createFileNames()
948 sprintf(libFileNames[LIB_FILE_MINGW], "lib%s.dll.a", libName); in createFileNames()
950 sprintf(libFileNames[LIB_FILE_CYGWIN], "cyg%s%s%s", in createFileNames()
954 sprintf(libFileNames[LIB_FILE_CYGWIN_VERSION], "cyg%s%s%s%s", in createFileNames()
963 sprintf(libFileNames[LIB_FILE_VERSION_TMP], "%s%s%s", in createFileNames()
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dsprintf-1.ll2 ; Test that the sprintf library call simplifier works correctly.
19 declare i32 @sprintf(i8*, i8*, ...)
21 ; Check sprintf(dst, fmt) -> llvm.memcpy(str, fmt, strlen(fmt) + 1, 1).
29 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
39 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
49 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
53 ; Check sprintf(dst, "%c", chr) -> *(i8*)dst = chr; *((i8*)dst + 1) = 0.
63 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8 104)
67 ; Check sprintf(dst, "%s", str) -> strcpy(dst, "%s", str) if result is unused.
75 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str)
[all …]
/external/autotest/client/tests/crashme/
Dcrashme_2.4-9.diff290 - sprintf(notes,"Subprocess run for %d seconds (%d %02d:%02d:%02d)",
291 + sprintf(notes,"Subprocess run for %ld seconds (%ld %02ld:%02ld:%02ld)",
296 - sprintf(notes,"Creating %d crashme subprocesses",nsubs);}
297 + sprintf(notes,"Creating %ld crashme subprocesses",nsubs);}
301 {sprintf(notes,
320 - sprintf(notes,"crashme %s%ld.%d %ld %ld",
321 + sprintf(notes,"crashme %s%ld.%ld %ld %ld",
328 - sprintf(notes,"Badboy at %d. 0x%X",badboy,badboy);
329 + sprintf(notes,"Badboy at %d. 0x%X",(int) badboy,(unsigned int) badboy);
337 - sprintf(notes,"try %d, offset %d",i,offset);
[all …]
/external/ltp/testcases/misc/math/float/power/
Dgenpower.c79 sprintf(funct, "%s/genceil", bin_path); in main()
83 sprintf(funct, "%s/genfabs", bin_path); in main()
87 sprintf(funct, "%s/genfloor", bin_path); in main()
91 sprintf(funct, "%s/genfmod", bin_path); in main()
95 sprintf(funct, "%s/genpow", bin_path); in main()
99 sprintf(funct, "%s/gensqrt", bin_path); in main()
/external/autotest/client/profilers/powertop/src/
Dwireless.c94 sprintf(line,"iwconfig %s 2> /dev/null", wireless_nic); in check_unused_wiresless_up()
121 sprintf(line, "/sbin/iwpriv %s get_power 2> /dev/null", iface); in need_wireless_suggest()
176 sprintf(pathname, "/sys/bus/pci/drivers/iwl4965/%s/power_level", dirent->d_name); in find_4965()
188 sprintf(pathname, "/sys/bus/pci/drivers/iwl3945/%s/power_level", dirent->d_name); in find_4965()
267 sprintf(rfkill_path,"/sys/bus/pci/devices/%s/rfkill/rfkill0/state", driver.bus_info); in find_wireless_nic()
268 sprintf(powersave_path,"/sys/bus/pci/devices/%s/power_level", driver.bus_info); in find_wireless_nic()
275 sprintf(line, "/sbin/iwpriv %s set_power 5 2> /dev/null", wireless_nic); in activate_wireless_suggestion()
308sprintf(sug, _("Suggestion: Enable wireless power saving mode by executing the following command:\… in suggest_wireless_powersave()
314sprintf(sug, _("Suggestion: Enable wireless power saving mode by executing the following command:\… in suggest_wireless_powersave()
320 sprintf(sug, _("Suggestion: Disable the unused WIFI radio by executing the following command:\n " in suggest_wireless_powersave()
/external/igt-gpu-tools/lib/
Digt_x86.c165 line += sprintf(line, "x86-64"); in igt_x86_features_to_string()
167 line += sprintf(line, "x86"); in igt_x86_features_to_string()
171 line += sprintf(line, ", sse2"); in igt_x86_features_to_string()
173 line += sprintf(line, ", sse3"); in igt_x86_features_to_string()
175 line += sprintf(line, ", ssse3"); in igt_x86_features_to_string()
177 line += sprintf(line, ", sse4.1"); in igt_x86_features_to_string()
179 line += sprintf(line, ", sse4.2"); in igt_x86_features_to_string()
181 line += sprintf(line, ", avx"); in igt_x86_features_to_string()
183 line += sprintf(line, ", avx2"); in igt_x86_features_to_string()
185 line += sprintf(line, ", f16c"); in igt_x86_features_to_string()
/external/iputils/Modules/
Dpg3.c155 sprintf(pg_result, "No such netdevice: \"%s\"", pg_outdev); in pg_setup_inject()
160 sprintf(pg_result, "Not ethernet device: \"%s\"", pg_outdev); in pg_setup_inject()
165 sprintf(pg_result, "Device is down: \"%s\"", pg_outdev); in pg_setup_inject()
249 sprintf(pg_result, "No memory"); in fill_packet()
436 p += sprintf(p, "OK: %u(c%u+d%u) usec, %u (%dbyte,%dfrags) %upps %uMB/sec", in pg_inject()
451 sprintf(pg_result, "Interrupted"); in pg_inject()
466 p += sprintf(p, "%d\n", pg_busy); in proc_pg_busy_read()
479 p += sprintf(p, "Params: count=%u pkt_size=%u frags %d ipg %u odev \"%s\" dst %s dstmac ", in proc_pg_read()
483 p += sprintf(p, "%02X%s", pg_dstmac[i], i == 5 ? "\n" : ":"); in proc_pg_read()
486 p += sprintf(p, "Result: %s\n", pg_result); in proc_pg_read()
[all …]
/external/ltp/testcases/kernel/syscalls/nftw/
Dtools.c73 sprintf(ebuf, "Can't mkdir ./tmp"); in setup_path()
81 sprintf(ebuf, "Can't mkdir %s %d", in setup_path()
91 sprintf(ebuf, "Can't symlink %s ", in setup_path()
102 sprintf(ebuf, "Can't open %s", pathdat[i].name); in setup_path()
124 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/d333"); in setup_path()
132 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/d666"); in setup_path()
140 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/dirg/dir_right.1"); in setup_path()
197 sprintf(s, "Unknown value for third argument to fn(): %d\n", x); in ftw_mnemonic()
Dtools64.c72 sprintf(ebuf, "Can't mkdir ./tmp"); in setup_path()
80 sprintf(ebuf, "Can't mkdir %s %d", in setup_path()
90 sprintf(ebuf, "Can't symlink %s ", in setup_path()
101 sprintf(ebuf, "Can't open %s", pathdat[i].name); in setup_path()
123 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/d333"); in setup_path()
131 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/d666"); in setup_path()
139 sprintf(ebuf, "Can't chmod %s ", "./tmp/data/dirg/dir_right.1"); in setup_path()
197 sprintf(s, "Unknown value for third argument to fn(): %d\n", x); in ftw_mnemonic()

12345678910>>...72