summaryrefslogtreecommitdiff
path: root/src/core/device.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-01-05 12:00:35 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-01-06 13:52:48 -0500
commit66870f90dec9b5bf4ad76f9757fafce703560a67 (patch)
tree992e0c8e26c75b38e61dee54cca68df89ab5aba3 /src/core/device.c
parentfdf9f9bbe4dc3281bc8799e2a1f8709776c8cad8 (diff)
systemd: use unit logging macros
Diffstat (limited to 'src/core/device.c')
-rw-r--r--src/core/device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/device.c b/src/core/device.c
index be76cafaed..0b01718ad4 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -92,10 +92,10 @@ static void device_set_state(Device *d, DeviceState state) {
d->state = state;
if (state != old_state)
- log_debug("%s changed %s -> %s",
- UNIT(d)->id,
- device_state_to_string(old_state),
- device_state_to_string(state));
+ log_debug_unit(UNIT(d)->id,
+ "%s changed %s -> %s", UNIT(d)->id,
+ device_state_to_string(old_state),
+ device_state_to_string(state));
unit_notify(UNIT(d), state_translation_table[old_state], state_translation_table[state], true);
}