/systemd-251/coccinelle/ |
D | strempty.cocci | 36 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/ |
D | test-login.c | 52 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/ |
D | test-selinux.c | 66 r, strnull(label)); in test_misc() 70 r, strnull(label2)); in test_misc() 77 r, strnull(label3)); in test_misc()
|
D | test-fstab-util.c | 39 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()
|
D | test-cgroup-util.c | 26 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()
|
D | test-path-util.c | 604 … 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() 784 …strnull(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() 828 …strnull(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()
|
D | test-os-util.c | 26 log_info("ID: %s", strnull(id2)); in TEST() 52 log_info("FOOBAR: %s", strnull(foobar)); in TEST()
|
D | test-utf8.c | 64 …log_debug("\"%s\" → %d/\"%s\" (expected %d/\"%s\")", s, r, strnull(ans), r_expected, strnull(expec… in test_utf8_to_ascii_one()
|
D | test-string-util.c | 36 __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()
|
D | test-udev-util.c | 133 …log_info("\"%s\" → expect: \"%s\", %d, actual: \"%s\", %d", str, strnull(expected), retval, result… in test_udev_resolve_subsys_kernel_one()
|
D | test-specifier.c | 104 puts(strnull(w)); in TEST()
|
D | test-user-util.c | 336 id, ruid, rgid, strnull(rhome), strnull(rshell)); in test_get_user_creds_one()
|
D | test-dns-domain.c | 684 s, r, strnull(buf), expected, strnull(result)); in test_dns_name_apply_idna_one()
|
D | test-calendarspec.c | 59 log_info("line %d: \"%s\" new_tz=%s", line, input, strnull(new_tz)); in _test_next()
|
/systemd-251/src/shared/ |
D | mount-util.c | 667 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()
|
D | test-tables.h | 26 … printf("%s: %" PRIi64 " → %s → %" PRIi64 "\n", name, _i, strnull(_val), _rev); \
|
D | sleep-config.c | 132 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()
|
D | discover-image.c | 382 …_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()
|
D | pager.c | 82 strnull(line), less_opts, yes_no(!r)); in no_quit_on_interrupt()
|
/systemd-251/src/core/ |
D | unit-serialize.c | 697 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/ |
D | vconsole-setup.c | 144 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/ |
D | systemctl-set-environment.c | 111 log_debug("Ignoring invalid environment assignment \"%s\".", strnull(t)); in invalid_callback()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | bus-internal.c | 98 … log_debug("The interface %s is invalid as it contains special character", strnull(iface)); in interface_name_is_valid()
|
/systemd-251/src/partition/ |
D | growfs.c | 126 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/ |
D | string-util.h | 36 static inline const char* strnull(const char *s) { in strnull() function
|