Home
last modified time | relevance | path

Searched refs:snprintf_ok (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/udev/
Dudev-builtin-net_id.c314 if (!snprintf_ok(path, sizeof path, "%s/%08"PRIx64, slots, function_id)) in parse_hotplug_slot_from_function_id()
409 if (!snprintf_ok(slots, sizeof slots, "%s/slots", syspath)) in dev_pci_slot()
444 if (snprintf_ok(str, sizeof str, "%s/%s/address", slots, de->d_name) && in dev_pci_slot()
812 if (!snprintf_ok(names->ccw_busid, sizeof(names->ccw_busid), "c%s", bus_id)) in names_ccw()
878 …if (!snprintf_ok(names->netdevsim_path, sizeof(names->netdevsim_path), "i%un%s", addr, info->phys_… in names_netdevsim()
1040 if (snprintf_ok(str, sizeof str, "%s%s", prefix, names.ccw_busid)) in builtin_net_id()
1049 if (snprintf_ok(str, sizeof str, "%s%s", prefix, names.vio_slot)) in builtin_net_id()
1058 if (snprintf_ok(str, sizeof str, "%s%s", prefix, names.platform_path)) in builtin_net_id()
1067 if (snprintf_ok(str, sizeof str, "%s%s", prefix, names.netdevsim_path)) in builtin_net_id()
1077 if (snprintf_ok(str, sizeof str, "%s%s", prefix, names.xen_slot)) in builtin_net_id()
[all …]
/systemd-251/src/basic/
Dstdio-util.h12 #define snprintf_ok(buf, len, fmt, ...) \ macro
21 …assert_message_se(snprintf_ok(buf, ELEMENTSOF(buf), fmt, __VA_ARGS__), "xsprintf: " #buf "[] must …
Dformat-util.c20 assert(snprintf_ok(buf, IF_NAMESIZE, "%%%d", ifindex)); in format_ifname_full()
22 assert(snprintf_ok(buf, IF_NAMESIZE, "%d", ifindex)); in format_ifname_full()
Ddevnum-util.h48 … return ASSERT_PTR(snprintf_ok(buf, DEVNUM_STR_MAX, DEVNUM_FORMAT_STR, DEVNUM_FORMAT_VAL(d))); in format_devnum()
Dfd-util.h121 assert_se(snprintf_ok(buf, PROC_FD_PATH_MAX, "/proc/self/fd/%i", fd)); in format_proc_fd_path()
/systemd-251/src/libsystemd/sd-bus/
Dbus-match.c994 return snprintf_ok(buf, l, "arg%i", t - BUS_MATCH_ARG); in bus_match_node_type_to_string()
997 return snprintf_ok(buf, l, "arg%ipath", t - BUS_MATCH_ARG_PATH); in bus_match_node_type_to_string()
1000 return snprintf_ok(buf, l, "arg%inamespace", t - BUS_MATCH_ARG_NAMESPACE); in bus_match_node_type_to_string()
1003 return snprintf_ok(buf, l, "arg%ihas", t - BUS_MATCH_ARG_HAS); in bus_match_node_type_to_string()