Searched defs:old_state (Results 1 - 12 of 12) sorted by relevance

/systemd/src/core/
H A Dslice.c38 SliceState old_state; local
41 old_state = t->state;
44 if (state != old_state)
47 slice_state_to_string(old_state),
50 unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], true);
H A Dtarget.c34 TargetState old_state; local
37 old_state = t->state;
40 if (state != old_state)
43 target_state_to_string(old_state),
46 unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], true);
H A Dscope.c98 ScopeState old_state; local
101 old_state = s->state;
110 if (state != old_state)
111 log_debug("%s changed %s -> %s", UNIT(s)->id, scope_state_to_string(old_state), scope_state_to_string(state));
113 unit_notify(UNIT(s), state_translation_table[old_state], state_translation_table[state], true);
H A Ddevice.c129 DeviceState old_state; local
132 old_state = d->state;
135 if (state != old_state)
136 log_unit_debug(UNIT(d), "Changed %s -> %s", device_state_to_string(old_state), device_state_to_string(state));
138 unit_notify(UNIT(d), state_translation_table[old_state], state_translation_table[state], true);
H A Dpath.c420 PathState old_state; local
423 old_state = p->state;
430 if (state != old_state)
431 log_unit_debug(UNIT(p), "Changed %s -> %s", path_state_to_string(old_state), path_state_to_string(state));
433 unit_notify(UNIT(p), state_translation_table[old_state], state_translation_table[state], true);
H A Dtimer.c255 TimerState old_state; local
258 old_state = t->state;
266 if (state != old_state)
267 log_unit_debug(UNIT(t), "Changed %s -> %s", timer_state_to_string(old_state), timer_state_to_string(state));
269 unit_notify(UNIT(t), state_translation_table[old_state], state_translation_table[state], true);
H A Dautomount.c232 AutomountState old_state; local
235 old_state = a->state;
242 if (state != old_state)
243 log_unit_debug(UNIT(a), "Changed %s -> %s", automount_state_to_string(old_state), automount_state_to_string(state));
245 unit_notify(UNIT(a), state_translation_table[old_state], state_translation_table[state], true);
467 int automount_update_mount(Automount *a, MountState old_state, MountState state) { argument
489 if (old_state != state)
510 if (old_state != state)
H A Dbusname.c330 BusNameState old_state; local
333 old_state = n->state;
347 if (state != old_state)
348 log_unit_debug(UNIT(n), "Changed %s -> %s", busname_state_to_string(old_state), busname_state_to_string(state));
350 unit_notify(UNIT(n), state_translation_table[old_state], state_translation_table[state], true);
H A Dswap.c484 SwapState old_state; local
489 old_state = s->state;
505 if (state != old_state)
506 log_unit_debug(UNIT(s), "Changed %s -> %s", swap_state_to_string(old_state), swap_state_to_string(state));
508 unit_notify(UNIT(s), state_translation_table[old_state], state_translation_table[state], true);
H A Dmount.c569 static int mount_notify_automount(Mount *m, MountState old_state, MountState state) { argument
578 r = automount_update_mount(AUTOMOUNT(p), old_state, state);
587 MountState old_state; local
590 old_state = m->state;
609 mount_notify_automount(m, old_state, state);
611 if (state != old_state)
612 log_unit_debug(UNIT(m), "Changed %s -> %s", mount_state_to_string(old_state), mount_state_to_string(state));
614 unit_notify(UNIT(m), state_translation_table[old_state], state_translation_table[state], m->reload_result == MOUNT_SUCCESS);
H A Dsocket.c1424 SocketState old_state; local
1427 old_state = s->state;
1460 if (state != old_state)
1461 log_unit_debug(UNIT(s), "Changed %s -> %s", socket_state_to_string(old_state), socket_state_to_string(state));
1463 unit_notify(UNIT(s), state_translation_table[old_state], state_translation_table[state], true);
H A Dservice.c873 ServiceState old_state; local
880 old_state = s->state;
954 if (old_state != state)
955 log_unit_debug(UNIT(s), "Changed %s -> %s", service_state_to_string(old_state), service_state_to_string(state));
957 unit_notify(UNIT(s), table[old_state], table[state], s->reload_result == SERVICE_SUCCESS);

Completed in 2237 milliseconds