| /openbsd-src/sys/arch/sh/sh/ |
| H A D | db_disasm.c | 159 snprintf(buf, bufsiz, "%-8s", opstr); in disasm_branch() 169 snprintf(buf, bufsiz, "%s", name); in disasm_branch() 171 snprintf(buf, bufsiz, "%s+", name); in disasm_branch() 199 snprintf(buf, bufsiz, ".word 0x%x", insn); in get_opcode() 221 snprintf(buf, bufsiz, "stc sr, r%d", rn); in f_02() 224 snprintf(buf, bufsiz, "stc gbr, r%d", rn); in f_02() 227 snprintf(buf, bufsiz, "stc vbr, r%d", rn); in f_02() 230 snprintf(buf, bufsiz, "stc ssr, r%d", rn); in f_02() 237 snprintf(buf, bufsiz, "stc spc, r%d", rn); in f_02() 242 snprintf(bu in f_02() [all...] |
| /openbsd-src/gnu/llvm/lldb/tools/debugserver/source/ |
| H A D | DNBRegisterInfo.cpp | 51 snprintf(str, sizeof(str), "%s", in Dump() 55 snprintf(str, sizeof(str), "0x%2.2x", value.uint8); in Dump() 58 snprintf(str, sizeof(str), "0x%4.4x", value.uint16); in Dump() 61 snprintf(str, sizeof(str), "0x%8.8x", value.uint32); in Dump() 64 snprintf(str, sizeof(str), "0x%16.16llx", value.uint64); in Dump() 67 snprintf(str, sizeof(str), "0x%16.16llx%16.16llx", value.v_uint64[0], in Dump() 76 snprintf(pos, end - pos, "%2.2x", (uint32_t)value.v_uint8[i]); in Dump() 85 snprintf(str, sizeof(str), "%u", value.uint8); in Dump() 88 snprintf(str, sizeof(str), "%u", value.uint16); in Dump() 91 snprintf(str, sizeof(str), "%u", value.uint32); in Dump() [all …]
|
| /openbsd-src/lib/libcrypto/bio/ |
| H A D | bio_cb.c | 82 nbuf = snprintf(buf, sizeof(buf), "BIO[%p]: ", bio); in BIO_debug_callback() 93 snprintf(p, p_maxlen, "Free - %s\n", bio->method->name); in BIO_debug_callback() 97 snprintf(p, p_maxlen, in BIO_debug_callback() 102 snprintf(p, p_maxlen, "read(%d,%lu) - %s\n", in BIO_debug_callback() 107 snprintf(p, p_maxlen, in BIO_debug_callback() 112 snprintf(p, p_maxlen, "write(%d,%lu) - %s\n", in BIO_debug_callback() 116 snprintf(p, p_maxlen, in BIO_debug_callback() 120 snprintf(p, p_maxlen, "gets(%lu) - %s\n", in BIO_debug_callback() 124 snprintf(p, p_maxlen, "ctrl(%lu) - %s\n", in BIO_debug_callback() 128 snprintf(p, p_maxlen, "read return %ld\n", ret); in BIO_debug_callback() [all …]
|
| /openbsd-src/usr.sbin/ldpd/ |
| H A D | logmsg.c | 118 snprintf(buf, TF_LEN, "-"); in log_label() 121 snprintf(buf, TF_LEN, "imp-null"); in log_label() 125 snprintf(buf, TF_LEN, "exp-null"); in log_label() 128 snprintf(buf, TF_LEN, "%u", label); in log_label() 142 snprintf(buf, sizeof(buf), "iface %s", in log_hello_src() 146 snprintf(buf, sizeof(buf), "source %s", in log_hello_src() 161 if (snprintf(buf, sizeof(buf), "wildcard") < 0) in log_map() 165 if (snprintf(buf, sizeof(buf), "%s/%u", in log_map() 171 if (snprintf(buf, sizeof(buf), "pw-id %u group-id %u (%s)", in log_map() 177 if (snprintf(buf, sizeof(buf), "typed wildcard") < 0) in log_map() [all …]
|
| /openbsd-src/usr.sbin/tcpdump/ |
| H A D | print-icmp.c | 185 (void) snprintf(buf, sizeof buf, "%u %u", dp->icmp_type, in icmp_print() 193 (void)snprintf(buf, sizeof buf, in icmp_print() 209 (void)snprintf(buf, sizeof buf, in icmp_print() 225 (void)snprintf(buf, sizeof buf, in icmp_print() 232 (void)snprintf(buf, sizeof buf, in icmp_print() 239 (void)snprintf(buf, sizeof buf, in icmp_print() 254 (void)snprintf(buf, sizeof buf, in icmp_print() 258 (void)snprintf(buf, sizeof buf, in icmp_print() 267 (void)snprintf(buf, sizeof buf, fmt, in icmp_print() 277 (void)snprintf(buf, sizeof buf, fmt, in icmp_print() [all …]
|
| H A D | privsep_pcap.c | 69 snprintf(hpcap.errbuf, PCAP_ERRBUF_SIZE, "invalid snaplen"); in setfilter() 83 snprintf(hpcap.errbuf, PCAP_ERRBUF_SIZE, in setfilter() 94 snprintf(hpcap.errbuf, PCAP_ERRBUF_SIZE, "Invalid filter size"); in setfilter() 132 snprintf(ebuf, PCAP_ERRBUF_SIZE, "out of memory"); in priv_pcap_setfilter() 151 snprintf(ebuf, PCAP_ERRBUF_SIZE, "pcap compile error"); in priv_pcap_setfilter() 157 snprintf(ebuf, PCAP_ERRBUF_SIZE, "out of memory"); in priv_pcap_setfilter() 235 snprintf(ebuf, PCAP_ERRBUF_SIZE, "No interface specified"); in priv_pcap_live() 241 snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", in priv_pcap_live() 259 snprintf(ebuf, PCAP_ERRBUF_SIZE, in priv_pcap_live() 267 snprintf(ebuf, PCAP_ERRBUF_SIZE, "BIOCVERSION: %s", in priv_pcap_live() [all …]
|
| /openbsd-src/lib/libpcap/ |
| H A D | pcap-bpf.c | 58 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "BIOCGSTATS: %s", in pcap_stats() 112 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in pcap_read() 117 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "read: %s", in pcap_read() 213 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, in bpf_open() 228 (void)snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", in get_dlt_list() 234 (void)snprintf(ebuf, PCAP_ERRBUF_SIZE, in get_dlt_list() 245 (void)snprintf(ebuf, PCAP_ERRBUF_SIZE, in get_dlt_list() 382 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "BIOCSETIF failed: %s", in check_setif_failure() 399 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "BIOCSETIF: %s: %s", in check_setif_failure() 425 snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "BIOCVERSION: %s", in pcap_activate() [all …]
|
| H A D | inet.c | 123 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupdev() 166 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, "socket: %s", in pcap_lookupdev() 176 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, "SIOCGIFCONF: %s", in pcap_lookupdev() 209 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupdev() 254 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, "socket: %s", in pcap_lookupnet() 266 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupnet() 269 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupnet() 279 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupnet() 294 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE, in pcap_lookupnet()
|
| /openbsd-src/usr.sbin/ikectl/ |
| H A D | ikeca.c | 138 len = snprintf(path, sizeof(path), "%s/private/%s.key", in ca_key_create() 141 err(1, "%s: snprintf", __func__); in ca_key_create() 167 len = snprintf(dst, sizeof(dst), "%s/private/%s.key", ca->sslpath, keyname); in ca_key_import() 169 err(1, "%s: snprintf", __func__); in ca_key_import() 182 len = snprintf(path, sizeof(path), "%s/private/%s.key", in ca_key_delete() 185 err(1, "%s: snprintf", __func__); in ca_key_delete() 197 len = snprintf(file, sizeof(file), "%s/%s.crt", ca->sslpath, keyname); in ca_delkey() 199 err(1, "%s: snprintf", __func__); in ca_delkey() 202 len = snprintf(file, sizeof(file), "%s/private/%s.key", ca->sslpath, keyname); in ca_delkey() 204 err(1, "%s: snprintf", __func_ in ca_delkey() [all...] |
| /openbsd-src/sys/arch/powerpc64/powerpc64/ |
| H A D | db_disasm.c | 610 snprintf(lbuf, sizeof (lbuf), "r%d", A); in disasm_process_field() 619 snprintf(lbuf, sizeof (lbuf), "r%d,", A); in disasm_process_field() 644 snprintf(lbuf, sizeof (lbuf), in disasm_process_field() 648 snprintf(lbuf, sizeof (lbuf), in disasm_process_field() 654 snprintf(lbuf, sizeof (lbuf), "0x%x", LI); in disasm_process_field() 663 snprintf(lbuf, sizeof (lbuf), "r%d", B); in disasm_process_field() 682 snprintf(lbuf, sizeof (lbuf), in disasm_process_field() 686 snprintf(lbuf, sizeof (lbuf), in disasm_process_field() 691 snprintf(lbuf, sizeof (lbuf), "0x%x", BD); in disasm_process_field() 704 snprintf(lbu in disasm_process_field() [all...] |
| /openbsd-src/sys/arch/powerpc/ddb/ |
| H A D | db_disasm.c | 610 snprintf(lbuf, sizeof (lbuf), "r%d", A); in disasm_process_field() 619 snprintf(lbuf, sizeof (lbuf), "r%d,", A); in disasm_process_field() 644 snprintf(lbuf, sizeof (lbuf), in disasm_process_field() 648 snprintf(lbuf, sizeof (lbuf), in disasm_process_field() 654 snprintf(lbuf, sizeof (lbuf), "0x%x", LI); in disasm_process_field() 663 snprintf(lbuf, sizeof (lbuf), "r%d", B); in disasm_process_field() 682 snprintf(lbuf, sizeof (lbuf), in disasm_process_field() 686 snprintf(lbuf, sizeof (lbuf), in disasm_process_field() 691 snprintf(lbuf, sizeof (lbuf), "0x%x", BD); in disasm_process_field() 704 snprintf(lbu in disasm_process_field() [all...] |
| /openbsd-src/usr.sbin/sensorsd/ |
| H A D | sensorsd.c | 481 snprintf(us, sizeof(us), in report_sdlim() 485 snprintf(us, sizeof(us), "marked invalid"); in report_sdlim() 488 snprintf(us, sizeof(us), in report_sdlim() 493 snprintf(us, sizeof(us), in report_sdlim() 499 snprintf(us, sizeof(us), in report_sdlim() 535 r = snprintf(&buf[n], len - n, "%s", in report_sdlim() 539 r = snprintf(&buf[n], len - n, "%s", in report_sdlim() 543 r = snprintf(&buf[n], len - n, "%d", in report_sdlim() 566 r = snprintf(&buf[n], len - n, "%s", in report_sdlim() 589 r = snprintf(&buf[n], len - n, "%s", in report_sdlim() [all …]
|
| /openbsd-src/lib/libc/rpc/ |
| H A D | clnt_perror.c | 59 ret = snprintf(str, len, "%s: %s", s, clnt_sperrno(e.re_status)); in clnt_sperror() 85 ret = snprintf(str, len, "; errno = %s", strerror(e.re_errno)); in clnt_sperror() 91 ret = snprintf(str, len, in clnt_sperror() 99 ret = snprintf(str, len, "; why = "); in clnt_sperror() 108 ret = snprintf(str, len, "%s", err); in clnt_sperror() 112 ret = snprintf(str, len, in clnt_sperror() 121 ret = snprintf(str, len, in clnt_sperror() 129 ret = snprintf(str, len, "; s1 = %u, s2 = %u", in clnt_sperror() 140 snprintf(buf + CLNT_PERROR_BUFLEN - 5, 5, "...\n"); in clnt_sperror() 201 (void) snprintf(buf, CLNT_PERROR_BUFLEN, "%s: %s - %s\n", s, in clnt_spcreateerror() [all …]
|
| /openbsd-src/sys/arch/macppc/macppc/ |
| H A D | cpu.c | 210 snprintf(cpu_model, sizeof(cpu_model), "601"); in cpuattach() 213 snprintf(cpu_model, sizeof(cpu_model), "603"); in cpuattach() 216 snprintf(cpu_model, sizeof(cpu_model), "604"); in cpuattach() 219 snprintf(cpu_model, sizeof(cpu_model), "603e"); in cpuattach() 222 snprintf(cpu_model, sizeof(cpu_model), "603ev"); in cpuattach() 225 snprintf(cpu_model, sizeof(cpu_model), "750"); in cpuattach() 228 snprintf(cpu_model, sizeof(cpu_model), "604ev"); in cpuattach() 232 snprintf(cpu_model, sizeof(cpu_model), "7400"); in cpuattach() 236 snprintf(cpu_model, sizeof(cpu_model), "7447A"); in cpuattach() 240 snprintf(cpu_mode in cpuattach() [all...] |
| /openbsd-src/regress/lib/libc/printf/ |
| H A D | int.c | 61 irc = snprintf(buf, sizeof(buf), fmt, (signed char)i); in ti() 64 irc = snprintf(buf, sizeof(buf), fmt, (short)i); in ti() 67 irc = snprintf(buf, sizeof(buf), fmt, (int)i); in ti() 70 irc = snprintf(buf, sizeof(buf), fmt, (long)i); in ti() 73 irc = snprintf(buf, sizeof(buf), fmt, (long long)i); in ti() 76 irc = snprintf(buf, sizeof(buf), fmt, (intmax_t)i); in ti() 79 irc = snprintf(buf, sizeof(buf), fmt, (ptrdiff_t)i); in ti() 82 irc = snprintf(buf, sizeof(buf), fmt, (ssize_t)i); in ti() 128 irc = snprintf(buf, sizeof(buf), fmt, (unsigned char)i); in tu() 131 irc = snprintf(buf, sizeof(buf), fmt, (unsigned short)i); in tu() [all …]
|
| /openbsd-src/games/hack/ |
| H A D | hack.objnam.c | 96 snprintf(buf, sizeof buf, (a < 0) ? "%d" : "+%d", a); in sitoa() 131 snprintf(bp, buf + sizeof buf - bp, in typename() 136 snprintf(bp, buf + sizeof buf - bp, in typename() 145 snprintf(bp, buf + sizeof buf - bp, in typename() 154 snprintf(bp, buf + sizeof buf - bp, " of %s", an); in typename() 158 snprintf(bp, buf + sizeof buf - bp, " called %s", un); in typename() 162 snprintf(bp, buf + sizeof buf - bp, " (%s)", dn); in typename() 218 snprintf(buf, len, "%sheavy iron ball", in xname() 261 snprintf(buf, len, "wand"); in xname() 263 snprintf(buf, len, "wand of %s", an); in xname() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFDefines.cpp | 25 snprintf(invalid, sizeof(invalid), "Unknown DW_TAG constant: 0x%x", val); in DW_TAG_value_to_name() 35 snprintf(invalid, sizeof(invalid), "Unknown DW_AT constant: 0x%x", val); in DW_AT_value_to_name() 45 snprintf(invalid, sizeof(invalid), "Unknown DW_FORM constant: 0x%x", val); in DW_FORM_value_to_name() 55 snprintf(invalid, sizeof(invalid), "Unknown DW_OP constant: 0x%x", val); in DW_OP_value_to_name() 65 snprintf(invalid, sizeof(invalid), "Unknown DW_ATE constant: 0x%x", val); in DW_ATE_value_to_name() 75 snprintf(invalid, sizeof(invalid), "Unknown DW_LANG constant: 0x%x", val); in DW_LANG_value_to_name() 85 snprintf(invalid, sizeof(invalid), "Unknown DW_LNS constant: 0x%x", val); in DW_LNS_value_to_name()
|
| /openbsd-src/regress/gnu/egcs/gcc-bounds/ |
| H A D | snprintf-4.cpp.exp.gcc3 | 1 snprintf-4.cpp: In function `int main(int, char**)': 2 snprintf-4.cpp:12: warning: sizeof(pointer) possibly incorrect in argument 2 3 snprintf-4.cpp:12: warning: array size (10) smaller than bound length (96) 4 snprintf-4.cpp:12: warning: sizeof(pointer) possibly incorrect in argument 2 5 snprintf-4.cpp:12: warning: array size (10) smaller than bound length (96)
|
| /openbsd-src/regress/sys/kern/unveil/ |
| H A D | syscalls.c | 176 (void) snprintf(filename, sizeof(filename), "%s/%s", uv_dir1, "newfile"); in test_open() 178 (void) snprintf(filename, sizeof(filename), "/%s/%s", uv_dir1, "doubleslash"); in test_open() 180 (void) snprintf(filename, sizeof(filename), "/%s//%s", uv_dir1, "doubleslash2"); in test_open() 183 (void) snprintf(filename, sizeof(filename), "%s/%s", uv_dir2, "newfile"); in test_open() 208 (void) snprintf(filename, sizeof(filename), "/%s/.", uv_dir1); in test_opendir() 210 (void) snprintf(filename, sizeof(filename), "/%s/..", uv_dir1); in test_opendir() 212 (void) snprintf(filename, sizeof(filename), "/%s/subdir", uv_dir1); in test_opendir() 214 (void) snprintf(filename, sizeof(filename), "/%s/subdir/../subdir", uv_dir1); in test_opendir() 216 (void) snprintf(filename, sizeof(filename), "/%s/../../%s/subdir", uv_dir1, uv_dir1); in test_opendir() 218 (void) snprintf(filenam in test_opendir() [all...] |
| /openbsd-src/libexec/talkd/ |
| H A D | announce.c | 57 (void)snprintf(full_tty, sizeof(full_tty), "%s/%s", _PATH_DEV, in announce() 101 (void)snprintf(line_buf[i], N_CHARS, " "); in print_mesg() 106 (void)snprintf(line_buf[i], N_CHARS, in print_mesg() 110 (void)snprintf(line_buf[i], N_CHARS, in print_mesg() 117 (void)snprintf(line_buf[i], N_CHARS, in print_mesg() 123 (void)snprintf(line_buf[i], N_CHARS, "talk: respond with: talk %s@%s", in print_mesg() 128 (void)snprintf(line_buf[i], N_CHARS, " "); in print_mesg()
|
| /openbsd-src/usr.sbin/bgpd/ |
| H A D | util.c | 49 snprintf(buf, sizeof(buf), "%s %s", log_rd(addr->rd), in ibuf_get_string() 101 if (snprintf(buf, sizeof(buf), "%u", as) < 0) in log_sockaddr() 120 snprintf(buf, sizeof(buf), "rd %hu:%u", u16, u32); in log_as() 125 snprintf(buf, sizeof(buf), "rd %s:%hu", log_as(u32), u16); in log_rd() 131 snprintf(buf, sizeof(buf), "rd %s:%hu", inet_ntoa(addr), u16); in log_rd() 134 snprintf(buf, sizeof(buf), "rd #%016llx", in log_rd() 157 snprintf(etype, sizeof(etype), "[%hhx:%hhx]", (uint8_t)type, subtype); 177 snprintf(buf, sizeof(buf), " expires %lld", (long long)expires); in log_reason() 195 snprintf(maxbuf, sizeof(maxbuf), " maxlen %u", roa->maxlen); 196 snprintf(bu [all...] |
| H A D | flowspec.c | 462 snprintf(buf, sizeof(buf), "%llu - %llu", in flowspec_fmt_num_op() 468 snprintf(buf, sizeof(buf), "%sfalse", in flowspec_fmt_num_op() 472 snprintf(buf, sizeof(buf), "%s%llu", in flowspec_fmt_num_op() 477 snprintf(buf, sizeof(buf), "%s> %llu", in flowspec_fmt_num_op() 482 snprintf(buf, sizeof(buf), "%s>= %llu", in flowspec_fmt_num_op() 487 snprintf(buf, sizeof(buf), "%s< %llu", in flowspec_fmt_num_op() 492 snprintf(buf, sizeof(buf), "%s<= %llu", in flowspec_fmt_num_op() 497 snprintf(buf, sizeof(buf), "%s!= %llu", in flowspec_fmt_num_op() 502 snprintf(buf, sizeof(buf), "%strue", in flowspec_fmt_num_op() 533 snprintf(buf, blen, "%llx", (unsigned long long)val); in fmt_flags() [all …]
|
| /openbsd-src/lib/libfido2/src/ |
| H A D | log.c | 41 snprintf(line, sizeof(line), "%.180s: %.70s\n", body, suffix); in do_log() 43 snprintf(line, sizeof(line), "%.180s\n", body); in do_log() 78 snprintf(row, sizeof(row), "buf=%p, len=%zu", buf, count); in fido_log_xxd() 87 snprintf(xxd, sizeof(xxd), "%04zu: %02x", i, *ptr++); in fido_log_xxd() 89 snprintf(xxd, sizeof(xxd), " %02x", *ptr++); in fido_log_xxd() 107 snprintf(errstr, sizeof(errstr), "error %d", errnum); in fido_log_error()
|
| /openbsd-src/usr.sbin/traceroute/ |
| H A D | worker.c | 205 len = snprintf(exthdr_str, in print_exthdr() 215 len = snprintf(exthdr_str, in print_exthdr() 224 len = snprintf(exthdr_str, in print_exthdr() 232 len = snprintf(exthdr_str, in print_exthdr() 243 len = snprintf(exthdr_str, in print_exthdr() 253 len = snprintf(exthdr_str, in print_exthdr() 285 snprintf(tr_res->tos, sizeof(tr_res->tos), in check_tos() 774 snprintf(tr_res->icmp_code, sizeof(tr_res->icmp_code), in icmp4_code() 780 snprintf(tr_res->icmp_code, sizeof(tr_res->icmp_code), "%s", in icmp4_code() 785 snprintf(tr_res->icmp_code, sizeof(tr_res->icmp_code), "%s", in icmp4_code() [all …]
|
| /openbsd-src/sys/dev/pci/ |
| H A D | pci_subr.c | 375 snprintf(cp, cp_max, "%svendor 0x%04x product 0x%04x", in pci_devinfo() 378 snprintf(cp, cp_max, "\"%s %s\"", vendor_namep, product_namep); in pci_devinfo() 380 snprintf(cp, cp_max, "vendor \"%s\", unknown product 0x%04x", in pci_devinfo() 386 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 390 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 394 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 399 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 403 snprintf(cp + cp_len, cp_max - cp_len, in pci_devinfo() 407 snprintf(cp + cp_len, cp_max - cp_len, " rev 0x%02x", in pci_devinfo()
|