Home
last modified time | relevance | path

Searched refs:strnull (Results 1 – 25 of 44) sorted by relevance

12

/systemd-251/coccinelle/
Dstrempty.cocci36 position p : script:python() { p[0].current_element != "strnull" };
41 + strnull(s)
44 + strnull(s)
48 position p : script:python() { p[0].current_element != "strnull" };
53 + s = strnull(s);
/systemd-251/src/libsystemd/sd-login/
Dtest-login.c52 log_info("sd_pid_get_unit(0, …) → %s / \"%s\"", e(r), strnull(unit)); in TEST()
56 log_info("sd_pid_get_user_unit(0, …) → %s / \"%s\"", e(r), strnull(user_unit)); in TEST()
60 log_info("sd_pid_get_slice(0, …) → %s / \"%s\"", e(r), strnull(slice)); in TEST()
68 log_info("sd_pid_get_session(0, …) → %s / \"%s\"", e(r), strnull(session)); in TEST()
71 log_info("sd_pid_get_cgroup(0, …) → %s / \"%s\"", e(r), strnull(cgroup)); in TEST()
75 … log_info("sd_uid_get_display("UID_FMT", …) → %s / \"%s\"", u2, e(r), strnull(display_session)); in TEST()
225 …fo("sd_seat_get_active(NULL, …) (active session on current seat) → %s / \"%s\"", e(r), strnull(t)); in TEST()
/systemd-251/src/test/
Dtest-selinux.c66 r, strnull(label)); in test_misc()
70 r, strnull(label2)); in test_misc()
77 r, strnull(label3)); in test_misc()
Dtest-fstab-util.c39 opts, r, strnull(name), value, filtered, in do_fstab_filter_options()
51 opts, r, strnull(name), joined, in do_fstab_filter_options()
60 opts, r, strnull(name), in do_fstab_filter_options()
Dtest-cgroup-util.c26 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, strnull(result), code); in check_p_d_u()
48 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, strnull(result), code); in check_p_g_u()
72 printf("%s: %s → %s %d expected %s %d\n", __func__, path, unit, r, strnull(result), code); in check_p_g_u_u()
256 log_info("actual: %s / %d", strnull(ret), r); in test_slice_to_path_one()
257 log_info("expect: %s / %d", strnull(path), error); in test_slice_to_path_one()
Dtest-path-util.c604 … log_debug("/* %s(\"%s\", accept_dot_dot=%s) */", __func__, strnull(path), yes_no(accept_dot_dot)); in test_path_find_first_component_one()
686 … log_debug("/* %s(\"%s\", accept_dot_dot=%s) */", __func__, strnull(path), yes_no(accept_dot_dot)); in test_path_find_last_component_one()
783 strnull(input), in test_path_extract_filename_one()
784strnull(k), /* strerror(r) is printed via %m, to avoid that the two strerror()'s overwrite each ot… in test_path_extract_filename_one()
785 strnull(output), ret < 0 ? strerror_safe(ret) : "-"); in test_path_extract_filename_one()
827 strnull(input), in test_path_extract_directory_one()
828strnull(k), /* we output strerror_safe(r) via %m here, since otherwise the error buffer might be o… in test_path_extract_directory_one()
829 strnull(output), strerror_safe(ret)); in test_path_extract_directory_one()
901 log_debug("/* %s(\"%s\") */", __func__, strnull(p)); in test_path_is_valid_and_safe_one()
Dtest-os-util.c26 log_info("ID: %s", strnull(id2)); in TEST()
52 log_info("FOOBAR: %s", strnull(foobar)); in TEST()
Dtest-utf8.c64 …log_debug("\"%s\" → %d/\"%s\" (expected %d/\"%s\")", s, r, strnull(ans), r_expected, strnull(expec… in test_utf8_to_ascii_one()
Dtest-string-util.c36 __func__, strnull(*t), strnull(src), l, strnull(expected), yes_no(change)); in test_free_and_strndup_one()
832 log_info("/* %s(%s, %s) */", __func__, strnull(newer), strnull(older)); in test_strverscmp_improved_one()
Dtest-udev-util.c133 …log_info("\"%s\" → expect: \"%s\", %d, actual: \"%s\", %d", str, strnull(expected), retval, result… in test_udev_resolve_subsys_kernel_one()
Dtest-specifier.c104 puts(strnull(w)); in TEST()
Dtest-user-util.c336 id, ruid, rgid, strnull(rhome), strnull(rshell)); in test_get_user_creds_one()
Dtest-dns-domain.c684 s, r, strnull(buf), expected, strnull(result)); in test_dns_name_apply_idna_one()
Dtest-calendarspec.c59 log_info("line %d: \"%s\" new_tz=%s", line, input, strnull(new_tz)); in _test_next()
/systemd-251/src/shared/
Dmount-util.c667 where, strnull(fl), strempty(o)); in mount_verbose_full()
670 where, strnull(fl), strempty(o)); in mount_verbose_full()
673 what, where, strnull(fl), strempty(o)); in mount_verbose_full()
676 what, where, strnull(fl), strempty(o)); in mount_verbose_full()
679 strna(what), strna(type), where, strnull(fl), strempty(o)); in mount_verbose_full()
688 strna(what), strna(type), where, strnull(fl), strempty(o)); in mount_verbose_full()
Dtest-tables.h26 … printf("%s: %" PRIi64 " → %s → %" PRIi64 "\n", name, _i, strnull(_val), _rev); \
Dsleep-config.c132 log_debug("Sleep mode %s not supported by the kernel, sorry.", strnull(t)); in can_sleep_state()
180 log_debug("Disk sleep mode %s not supported by the kernel, sorry.", strnull(t)); in can_sleep_disk()
Ddiscover-image.c382 …_errno(errno, "Failed to open block device %s/%s, ignoring: %m", path ?: strnull(parent), filename… in image_make()
396 …errno, "Failed to issue BLKROGET on device %s/%s, ignoring: %m", path ?: strnull(parent), filename… in image_make()
402 …o, "Failed to issue BLKGETSIZE64 on device %s/%s, ignoring: %m", path ?: strnull(parent), filename… in image_make()
Dpager.c82 strnull(line), less_opts, yes_no(!r)); in no_quit_on_interrupt()
/systemd-251/src/core/
Dunit-serialize.c697 fprintf(f, "%s\tCGroup realized mask: %s\n", prefix, strnull(s)); in unit_dump()
703 fprintf(f, "%s\tCGroup enabled mask: %s\n", prefix, strnull(s)); in unit_dump()
710 fprintf(f, "%s\tCGroup own mask: %s\n", prefix, strnull(s)); in unit_dump()
717 fprintf(f, "%s\tCGroup members mask: %s\n", prefix, strnull(s)); in unit_dump()
724 fprintf(f, "%s\tCGroup delegate mask: %s\n", prefix, strnull(s)); in unit_dump()
/systemd-251/src/vconsole/
Dvconsole-setup.c144 log_debug("Executing \"%s\"...", strnull(cmd)); in keyboard_load_and_wait()
187 log_debug("Executing \"%s\"...", strnull(cmd)); in font_load_and_wait()
/systemd-251/src/systemctl/
Dsystemctl-set-environment.c111 log_debug("Ignoring invalid environment assignment \"%s\".", strnull(t)); in invalid_callback()
/systemd-251/src/libsystemd/sd-bus/
Dbus-internal.c98 … log_debug("The interface %s is invalid as it contains special character", strnull(iface)); in interface_name_is_valid()
/systemd-251/src/partition/
Dgrowfs.c126 log_debug("Don't know how to resize %s of type %s, ignoring.", devpath, strnull(fstype)); in maybe_resize_underlying_device()
/systemd-251/src/basic/
Dstring-util.h36 static inline const char* strnull(const char *s) { in strnull() function

12