(void) table_set_align_percent(table, TABLE_HEADER_CELL(0), 100);
(void) table_set_align_percent(table, TABLE_HEADER_CELL(1), 100);
+ (void) table_set_ersatz_string(table, TABLE_ERSATZ_DASH);
+
for (;;) {
_cleanup_(sd_bus_error_free) sd_bus_error e = SD_BUS_ERROR_NULL;
const char *id, *user, *seat, *object;
return log_oom();
(void) table_set_align_percent(table, TABLE_HEADER_CELL(0), 100);
+ (void) table_set_ersatz_string(table, TABLE_ERSATZ_DASH);
for (;;) {
_cleanup_(sd_bus_error_free) sd_bus_error error_property = SD_BUS_ERROR_NULL;
if (!table)
return log_oom();
+ (void) table_set_ersatz_string(table, TABLE_ERSATZ_DASH);
+
for (;;) {
const char *seat;
if (!table)
return log_oom();
+ (void) table_set_ersatz_string(table, TABLE_ERSATZ_NA);
+
if (dual_timestamp_is_set(&i.timestamp)) {
r = table_add_cell(table, NULL, TABLE_FIELD, "Since");
if (r < 0)
if (!table)
return log_oom();
+ (void) table_set_ersatz_string(table, TABLE_ERSATZ_NA);
+
if (dual_timestamp_is_set(&i.timestamp)) {
r = table_add_cell(table, NULL, TABLE_FIELD, "Since");
if (r < 0)
if (!table)
return log_oom();
+ (void) table_set_ersatz_string(table, TABLE_ERSATZ_NA);
+
if (!strv_isempty(i.sessions)) {
_cleanup_strv_free_ char **sessions = TAKE_PTR(i.sessions);
assert_eq "$(loginctl list-sessions --no-legend | awk '$3 == "logind-test-user" { print $5 }')" tty2
assert_eq "$(loginctl list-sessions --no-legend | awk '$3 == "logind-test-user" { print $6 }')" active
assert_eq "$(loginctl list-sessions --no-legend | awk '$3 == "logind-test-user" { print $7 }')" no
- assert_eq "$(loginctl list-sessions --no-legend | awk '$3 == "logind-test-user" { print $8 }')" ''
+ assert_eq "$(loginctl list-sessions --no-legend | awk '$3 == "logind-test-user" { print $8 }')" '-'
loginctl list-seats --no-legend | grep -Fwq "${seat?}"