summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-12 22:05:16 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-11-15 22:53:14 -0500
commit952d97ed2b44f58b973a78c87d09b20c36f61460 (patch)
tree51c39b358c9a5e6abfc413b5e3f8f9c1572d7ff0 /src
parent4e8da529592b01fee27f48962fe953b777de9b30 (diff)
random-seed: improve debugging messages a bit
Diffstat (limited to 'src')
-rw-r--r--src/random-seed/random-seed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c
index afbd5002dd..af79ecf2a9 100644
--- a/src/random-seed/random-seed.c
+++ b/src/random-seed/random-seed.c
@@ -72,7 +72,7 @@ int main(int argc, char *argv[]) {
r = mkdir_parents_label(RANDOM_SEED, 0755);
if (r < 0) {
- log_error("Failed to create parent directory of " RANDOM_SEED ": %s", strerror(-r));
+ log_error("Failed to create directory " RANDOM_SEED_DIR ": %s", strerror(-r));
goto finish;
}
@@ -86,7 +86,7 @@ int main(int argc, char *argv[]) {
if (seed_fd < 0) {
seed_fd = open(RANDOM_SEED, O_RDONLY|O_CLOEXEC|O_NOCTTY);
if (seed_fd < 0) {
- log_error("Failed to open random seed: %m");
+ log_error("Failed to open " RANDOM_SEED ": %m");
r = -errno;
goto finish;
}
@@ -106,7 +106,7 @@ int main(int argc, char *argv[]) {
if (k <= 0) {
if (r != 0)
- log_error("Failed to read seed file: %m");
+ log_error("Failed to read seed from " RANDOM_SEED ": %m");
r = k == 0 ? -EIO : (int) k;
@@ -125,7 +125,7 @@ int main(int argc, char *argv[]) {
seed_fd = open(RANDOM_SEED, O_WRONLY|O_CLOEXEC|O_NOCTTY|O_CREAT, 0600);
if (seed_fd < 0) {
- log_error("Failed to open random seed: %m");
+ log_error("Failed to open " RANDOM_SEED ": %m");
r = -errno;
goto finish;
}