Home
last modified time | relevance | path

Searched refs:snprintf (Results 1 – 25 of 350) sorted by relevance

12345678910>>...14

/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/hplip/hplip/
H A D0005-hp_ipp.c-Add-printf-format-to-snprintf-calls.patch4 Subject: [PATCH] hp_ipp.c: Add printf format to snprintf calls
23 - snprintf( info,sizeof(info), name );
24 + snprintf( info,sizeof(info), "%s", name );
32 - snprintf(t_printer->name, sizeof(t_printer->name),ippGetString(attr, 0, NULL) );
33 + snprintf(t_printer->name, sizeof(t_printer->name), "%s", ippGetString(attr, 0, N…
37 - snprintf(t_printer->device_uri,sizeof(t_printer->device_uri), ippGetString(attr,…
38 + snprintf(t_printer->device_uri,sizeof(t_printer->device_uri), "%s", ippGetString…
42 - snprintf(t_printer->printer_uri,sizeof(t_printer->printer_uri), ippGetString(att…
43 + snprintf(t_printer->printer_uri,sizeof(t_printer->printer_uri), "%s", ippGetStri…
47 - snprintf(t_printer->info,sizeof(t_printer->info), ippGetString(attr, 0, NULL) );
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/pgpool2/pgpool2/
H A D0001-Fix-build-error-when-build-this-file.patch6 | snprintf.c:770:64: error: 'PG_STRERROR_R_BUFLEN' undeclared (first use in this function)
16 src/parser/snprintf.c | 1 +
19 diff --git a/src/parser/snprintf.c b/src/parser/snprintf.c
21 --- a/src/parser/snprintf.c
22 +++ b/src/parser/snprintf.c
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/ez-ipupdate/files/
H A D0001-ez-ipupdate-Include-time.h-for-time-API-prototype.patch6 Fix printf format specifiers for snprintf
31 - snprintf(buf, BUFFER_SIZE, "Content-length: %d\015\012", strlen(putbuf));
32 + snprintf(buf, BUFFER_SIZE, "Content-length: %lu\015\012", strlen(putbuf));
34 snprintf(buf, BUFFER_SIZE, "\015\012");
40 - snprintf(buf, BUFFER_SIZE, "Content-length: %d\015\012", strlen(putbuf));
41 + snprintf(buf, BUFFER_SIZE, "Content-length: %lu\015\012", strlen(putbuf));
43 snprintf(buf, BUFFER_SIZE, "\015\012");
/openbmc/phosphor-host-ipmid/
H A Dipmisensor.cpp125 std::snprintf( in set_sensor_dbus_state_fwprogress()
131 std::snprintf( in set_sensor_dbus_state_fwprogress()
136 std::snprintf( in set_sensor_dbus_state_fwprogress()
141 std::snprintf( in set_sensor_dbus_state_fwprogress()
170 std::snprintf(p, sizeof(valuestring), "System Reconfigured"); in set_sensor_dbus_state_system_event()
173 std::snprintf(p, sizeof(valuestring), "OEM Boot Event"); in set_sensor_dbus_state_system_event()
176 std::snprintf(p, sizeof(valuestring), in set_sensor_dbus_state_system_event()
180 std::snprintf( in set_sensor_dbus_state_system_event()
186 std::snprintf( in set_sensor_dbus_state_system_event()
192 std::snprintf( in set_sensor_dbus_state_system_event()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools/core/
H A D0002-adb-Use-local-sockets-where-appropriate.patch21 - snprintf(target_str, target_size, "tcp:%d", server_port);
23 + snprintf(target_str, target_size, "tcp:%d", server_port);
25 + snprintf(target_str, target_size, "local:%d", server_port);
38 - snprintf(tmp, sizeof tmp, "%04x", len);
39 + snprintf(tmp, sizeof tmp, "%d", __adb_server_port);
53 + snprintf(tmp, sizeof tmp, "%04x", len);
66 + snprintf(buf, sizeof buf, "%d", adb_port);
/openbmc/u-boot/test/
H A Dprint_ut.c42 snprintf(str, sizeof(str), "_%pD_", buf); in efi_ut_print()
46 snprintf(str, sizeof(str), "_%pD_", NULL); in efi_ut_print()
61 snprintf(str, sizeof(str), "testing"); in do_ut_print()
64 snprintf(str, sizeof(str), "testing but too long"); in do_ut_print()
67 snprintf(str, 1, "testing none"); in do_ut_print()
71 snprintf(str, 0, "testing none"); in do_ut_print()
/openbmc/ipmitool/lib/
H A Dipmi_sel.c614 snprintf(desc, SIZE_OF_DESC, "@DIMM%2X(CPU%x)", in get_supermicro_evt_desc()
618 snprintf(desc, SIZE_OF_DESC, "@DIMM%c%c(CPU%x)", in get_supermicro_evt_desc()
622 snprintf(desc, SIZE_OF_DESC, "@DIMM%c%c(CPU%x)", in get_supermicro_evt_desc()
633 snprintf(desc, SIZE_OF_DESC, "BMC unexpected reset"); in get_supermicro_evt_desc()
635 snprintf(desc, SIZE_OF_DESC, "BMC cold reset"); in get_supermicro_evt_desc()
637 snprintf(desc, SIZE_OF_DESC, "BMC warm reset"); in get_supermicro_evt_desc()
691 snprintf(desc,SIZE_OF_DESC,"CPU Internal Err | "); in get_dell_evt_desc()
694 snprintf(desc,SIZE_OF_DESC,"CPU Protocol Err | "); in get_dell_evt_desc()
706 snprintf(desc,SIZE_OF_DESC,"FSB %d ",count); // Which CPU Has generated the FSB in get_dell_evt_desc()
708snprintf(desc,SIZE_OF_DESC,"CPU %d | APIC ID %d ",count,data3); /* Specific CPU related info */ in get_dell_evt_desc()
[all …]
/openbmc/openbmc/poky/meta/recipes-extended/unzip/unzip/
H A DCVE-2018-18384.patch21 + snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactor100));
24 + snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactorStr), sgn, cfacto…
33 + snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactor100));
36 + snprintf(cfactorstr, sizeof(cfactorstr), LoadFarString(CompFactorStr), sgn, cfactor);
/openbmc/u-boot/drivers/sysreset/
H A Dsysreset_mpc83xx.c107 res = snprintf(buf, size, in print_83xx_arb_event()
120 res = snprintf(buf, size, in print_83xx_arb_event()
153 res = snprintf(buf, size, "Reset Status:"); in mpc83xx_sysreset_get_status()
167 res = snprintf(buf, size, "%s%s%s", sep, bits[i].desc, in mpc83xx_sysreset_get_status()
198 snprintf(buf, size, "\n"); in mpc83xx_sysreset_get_status()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/libexecinfo/libexecinfo/
H A D0002-execinfo-Fix-compiler-errors-found-with-newer-gcc-cl.patch47 - snprintf(cp, alen, "%p <%s+%d> at %s",
48 + snprintf((char *) rval + clen, alen, "%p <%s+%d> at %s",
56 - snprintf(cp, alen, "%p", buffer[i]);
57 + snprintf((char *) rval + clen, alen, "%p", buffer[i]);
73 snprintf(buf, len, "%p\n", buffer[i]);
/openbmc/qemu/hw/arm/
H A Dfsl-imx6ul.c71 snprintf(name, NAME_SIZE, "gpio%d", i); in fsl_imx6ul_init()
79 snprintf(name, NAME_SIZE, "gpt%d", i); in fsl_imx6ul_init()
87 snprintf(name, NAME_SIZE, "epit%d", i + 1); in fsl_imx6ul_init()
95 snprintf(name, NAME_SIZE, "spi%d", i + 1); in fsl_imx6ul_init()
103 snprintf(name, NAME_SIZE, "i2c%d", i + 1); in fsl_imx6ul_init()
111 snprintf(name, NAME_SIZE, "uart%d", i); in fsl_imx6ul_init()
119 snprintf(name, NAME_SIZE, "eth%d", i); in fsl_imx6ul_init()
127 snprintf(name, NAME_SIZE, "usbphy%d", i); in fsl_imx6ul_init()
135 snprintf(name, NAME_SIZE, "usb%d", i); in fsl_imx6ul_init()
143 snprintf(name, NAME_SIZE, "usdhc%d", i); in fsl_imx6ul_init()
[all …]
H A Dfsl-imx7.c44 snprintf(name, NAME_SIZE, "cpu%d", i); in fsl_imx7_init()
59 snprintf(name, NAME_SIZE, "gpio%d", i); in fsl_imx7_init()
67 snprintf(name, NAME_SIZE, "gpt%d", i); in fsl_imx7_init()
95 snprintf(name, NAME_SIZE, "spi%d", i + 1); in fsl_imx7_init()
103 snprintf(name, NAME_SIZE, "i2c%d", i + 1); in fsl_imx7_init()
111 snprintf(name, NAME_SIZE, "uart%d", i); in fsl_imx7_init()
119 snprintf(name, NAME_SIZE, "eth%d", i); in fsl_imx7_init()
127 snprintf(name, NAME_SIZE, "usdhc%d", i); in fsl_imx7_init()
140 snprintf(name, NAME_SIZE, "wdt%d", i); in fsl_imx7_init()
160 snprintf(name, NAME_SIZE, "usb%d", i); in fsl_imx7_init()
[all …]
H A Dfsl-imx6.c47 snprintf(name, NAME_SIZE, "cpu%d", i); in fsl_imx6_init()
61 snprintf(name, NAME_SIZE, "uart%d", i + 1); in fsl_imx6_init()
68 snprintf(name, NAME_SIZE, "epit%d", i + 1); in fsl_imx6_init()
73 snprintf(name, NAME_SIZE, "i2c%d", i + 1); in fsl_imx6_init()
78 snprintf(name, NAME_SIZE, "gpio%d", i + 1); in fsl_imx6_init()
83 snprintf(name, NAME_SIZE, "sdhc%d", i + 1); in fsl_imx6_init()
88 snprintf(name, NAME_SIZE, "usbphy%d", i); in fsl_imx6_init()
92 snprintf(name, NAME_SIZE, "usb%d", i); in fsl_imx6_init()
97 snprintf(name, NAME_SIZE, "spi%d", i + 1); in fsl_imx6_init()
101 snprintf(name, NAME_SIZE, "wdt%d", i); in fsl_imx6_init()
/openbmc/u-boot/board/intel/edison/
H A Dedison.c62 snprintf(usb0addr, sizeof(usb0addr), "02:00:86:%02x:%02x:%02x", in assign_serial()
67 snprintf(&serial[2 * i], 3, "%02x", ssn[i]); in assign_serial()
85 snprintf(hardware_id, sizeof(hardware_id), "%02X", v.hardware_id); in assign_hardware_id()
/openbmc/hiomapd/vpnor/test/
H A Dtmpd.hpp64 snprintf(paths.ro_loc, PATH_MAX - 1, "%s/ro", root.c_str()); in VpnorRoot()
66 snprintf(paths.rw_loc, PATH_MAX - 1, "%s/rw", root.c_str()); in VpnorRoot()
68 snprintf(paths.prsv_loc, PATH_MAX - 1, "%s/prsv", root.c_str()); in VpnorRoot()
70 snprintf(paths.patch_loc, PATH_MAX - 1, "%s/patch", root.c_str()); in VpnorRoot()
/openbmc/phosphor-logging/extensions/openpower-pels/
H A Djson_utils.cpp85 snprintf(byteCount, 11, "%08X ", static_cast<uint32_t>(i)); in dumpHex()
90 snprintf(symbol, symbolSize, "%02X ", ((unsigned char*)data)[i]); in dumpHex()
114 snprintf(symbol, symbolSize, "| %s\",\n", in dumpHex()
119 snprintf(symbol, symbolSize, "| %s\"\n", in dumpHex()
124 snprintf(symbol, symbolSize, "| %s\n", in dumpHex()
145 snprintf(symbol, symbolSize, "| %s\"\n", in dumpHex()
150 snprintf(symbol, symbolSize, "| %s\n", in dumpHex()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/ruli/files/
H A D0001-src-ruli_addr.c-Add-missing-format-string.patch10 | return snprintf(buf, size, inet_ntoa(addr->ipv4));
28 - return snprintf(buf, size, inet_ntoa(addr->ipv4));
29 + return snprintf(buf, size, "%s", inet_ntoa(addr->ipv4));
/openbmc/u-boot/board/samsung/common/
H A Dmisc.c54 offset = snprintf(buf, buf_size, "%s", alt_setting); in set_dfu_alt_info()
64 offset += snprintf(buf + offset, buf_size - offset, in set_dfu_alt_info()
83 snprintf(info, ARRAY_SIZE(info), "%u.%u", (s5p_cpu_rev & 0xf0) >> 4, in set_board_info()
87 snprintf(info, ARRAY_SIZE(info), "%x", s5p_cpu_id); in set_board_info()
91 snprintf(info, ARRAY_SIZE(info), "%x", get_board_rev()); in set_board_info()
106 snprintf(info, ARRAY_SIZE(info), "%s%x-%s%s.dtb", in set_board_info()
/openbmc/openbmc/poky/meta/recipes-support/db/db/
H A Dsequence-type.patch33 - (void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
37 - (void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
49 - (void)snprintf(buf, sizeof(buf), $db_cv_seq_fmt, l);
53 - (void)snprintf(buf, sizeof(buf), $db_cv_seq_ufmt, u);
/openbmc/u-boot/drivers/cpu/
H A Dcpu_sandbox.c13 snprintf(buf, size, "LEG Inc. SuperMegaUltraTurbo CPU No. 1"); in cpu_sandbox_get_desc()
33 snprintf(buf, size, "Languid Example Garbage Inc."); in cpu_sandbox_get_vendor()
/openbmc/u-boot/board/dhelectronics/dh_imx6/
H A Ddh_imx6.c404 snprintf(buf, sizeof(buf), "imx6s-dhcom%1d", hw_code); in board_late_init()
407 snprintf(buf, sizeof(buf), "imx6dl-dhcom%1d", hw_code); in board_late_init()
410 snprintf(buf, sizeof(buf), "imx6d-dhcom%1d", hw_code); in board_late_init()
413 snprintf(buf, sizeof(buf), "imx6q-dhcom%1d", hw_code); in board_late_init()
416 snprintf(buf, sizeof(buf), "UNKNOWN%1d", hw_code); in board_late_init()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libtar/files/
H A D0008-decode-avoid-using-a-static-buffer-in-th_get_pathnam.patch47 + snprintf(t->th_pathname, MAXPATHLEN, "%.100s", t->th_buf.name);
51 - snprintf(filename, sizeof(filename), "%.155s/%.100s",
52 + snprintf(t->th_pathname, MAXPATHLEN, "%.155s/%.100s",
57 - snprintf(filename, sizeof(filename), "%.100s", t->th_buf.name);
/openbmc/qemu/tests/tcg/multiarch/
H A Dtestthread.c23 snprintf(buf, sizeof(buf), "thread1: %d %s\n", i, (char *)arg); in thread1_func()
35 snprintf(buf, sizeof(buf), "thread2: %d %s\n", i, (char *)arg); in thread2_func()
/openbmc/u-boot/board/raspberrypi/rpi/
H A Drpi.c359 snprintf(s, sizeof(s), "0x%X", revision); in set_board_info()
361 snprintf(s, sizeof(s), "%d", rev_scheme); in set_board_info()
364 snprintf(s, sizeof(s), "0x%X", rev_type); in set_board_info()
389 snprintf(serial_string, sizeof(serial_string), "%016llx", in set_serial_number()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-protocols/freediameter/files/
H A D0001-tests-use-EXTENSIONS_DIR.patch53 - pathlen = snprintf(fullname, sizeof(fullname), BUILD_DIR "/extensions/");
56 + pathlen = snprintf(fullname, sizeof(fullname), EXTENSIONS_DIR "/");
83 - pathlen = snprintf(fullname, sizeof(fullname), BUILD_DIR "/extensions/");
86 + pathlen = snprintf(fullname, sizeof(fullname), EXTENSIONS_DIR "/");

12345678910>>...14