chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mount: check options as well as fstype for network mounts
[elogind.git]
/
src
/
core
/
snapshot.c
diff --git
a/src/core/snapshot.c
b/src/core/snapshot.c
index c2678cbe6e9fda13eec8bd0ad6ae5a3366c7cdfa..900d0d793a24a36f752d23a1694cfeded694aac7 100644
(file)
--- a/
src/core/snapshot.c
+++ b/
src/core/snapshot.c
@@
-51,7
+51,7
@@
static void snapshot_set_state(Snapshot *s, SnapshotState state) {
s->state = state;
if (state != old_state)
s->state = state;
if (state != old_state)
- log_
debug_unit
(UNIT(s)->id,
+ log_
unit_debug
(UNIT(s)->id,
"%s changed %s -> %s",
UNIT(s)->id,
snapshot_state_to_string(old_state),
"%s changed %s -> %s",
UNIT(s)->id,
snapshot_state_to_string(old_state),
@@
-155,7
+155,7
@@
static int snapshot_deserialize_item(Unit *u, const char *key, const char *value
state = snapshot_state_from_string(value);
if (state < 0)
state = snapshot_state_from_string(value);
if (state < 0)
- log_
debug_unit
(u->id, "Failed to parse state value %s", value);
+ log_
unit_debug
(u->id, "Failed to parse state value %s", value);
else
s->deserialized_state = state;
else
s->deserialized_state = state;
@@
-163,7
+163,7
@@
static int snapshot_deserialize_item(Unit *u, const char *key, const char *value
r = parse_boolean(value);
if (r < 0)
r = parse_boolean(value);
if (r < 0)
- log_
debug_unit
(u->id, "Failed to parse cleanup value %s", value);
+ log_
unit_debug
(u->id, "Failed to parse cleanup value %s", value);
else
s->cleanup = r;
else
s->cleanup = r;
@@
-173,7
+173,7
@@
static int snapshot_deserialize_item(Unit *u, const char *key, const char *value
if (r < 0)
return r;
} else
if (r < 0)
return r;
} else
- log_
debug_unit
(u->id, "Unknown serialization key '%s'", key);
+ log_
unit_debug
(u->id, "Unknown serialization key '%s'", key);
return 0;
}
return 0;
}
@@
-258,7
+258,7
@@
int snapshot_create(Manager *m, const char *name, bool cleanup, sd_bus_error *e,
SNAPSHOT(u)->cleanup = cleanup;
*_s = SNAPSHOT(u);
SNAPSHOT(u)->cleanup = cleanup;
*_s = SNAPSHOT(u);
- log_
info_unit
(u->id, "Created snapshot %s.", u->id);
+ log_
unit_info
(u->id, "Created snapshot %s.", u->id);
return 0;
return 0;
@@
-272,7
+272,7
@@
fail:
void snapshot_remove(Snapshot *s) {
assert(s);
void snapshot_remove(Snapshot *s) {
assert(s);
- log_
info_unit
(UNIT(s)->id, "Removing snapshot %s.", UNIT(s)->id);
+ log_
unit_info
(UNIT(s)->id, "Removing snapshot %s.", UNIT(s)->id);
unit_add_to_cleanup_queue(UNIT(s));
}
unit_add_to_cleanup_queue(UNIT(s));
}