aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-02-03 19:31:53 -0500
committerAnthony G. Basile <blueness@gentoo.org>2014-02-09 08:18:06 -0500
commitc1db5c60e38fa4b1cd2c590dbc8ce95c4fc3844b (patch)
treee697b3dcfa26a1f998875fd6109dfbbaccd38f89 /src/udev/udevadm-hwdb.c
parentudev: add zram to the list of devices inappropriate for symlinks (diff)
downloadeudev-c1db5c60e38fa4b1cd2c590dbc8ce95c4fc3844b.tar.gz
eudev-c1db5c60e38fa4b1cd2c590dbc8ce95c4fc3844b.tar.bz2
eudev-c1db5c60e38fa4b1cd2c590dbc8ce95c4fc3844b.zip
Update some message formats
Use PID_FMT/USEC_FMT/... in more places. Also update logind error messages to print the full path to a file that failed. This should make debugging easier for people who do not know off the top of their head where logind stores it state. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevadm-hwdb.c')
-rw-r--r--src/udev/udevadm-hwdb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/udev/udevadm-hwdb.c b/src/udev/udevadm-hwdb.c
index 1026a7a66..614c64789 100644
--- a/src/udev/udevadm-hwdb.c
+++ b/src/udev/udevadm-hwdb.c
@@ -397,16 +397,16 @@ static int trie_store(struct trie *trie, const char *filename) {
}
log_debug("=== trie on-disk ===");
- log_debug("size: %8llu bytes", (unsigned long long)size);
+ log_debug("size: %8"PRIu64" bytes", size);
log_debug("header: %8zu bytes", sizeof(struct trie_header_f));
- log_debug("nodes: %8llu bytes (%8llu)",
- (unsigned long long)t.nodes_count * sizeof(struct trie_node_f), (unsigned long long)t.nodes_count);
- log_debug("child pointers: %8llu bytes (%8llu)",
- (unsigned long long)t.children_count * sizeof(struct trie_child_entry_f), (unsigned long long)t.children_count);
- log_debug("value pointers: %8llu bytes (%8llu)",
- (unsigned long long)t.values_count * sizeof(struct trie_value_entry_f), (unsigned long long)t.values_count);
- log_debug("string store: %8llu bytes", (unsigned long long)trie->strings->len);
- log_debug("strings start: %8llu", (unsigned long long) t.strings_off);
+ log_debug("nodes: %8"PRIu64" bytes (%8"PRIu64")",
+ t.nodes_count * sizeof(struct trie_node_f), t.nodes_count);
+ log_debug("child pointers: %8"PRIu64" bytes (%8"PRIu64")",
+ t.children_count * sizeof(struct trie_child_entry_f), t.children_count);
+ log_debug("value pointers: %8"PRIu64" bytes (%8"PRIu64")",
+ t.values_count * sizeof(struct trie_value_entry_f), t.values_count);
+ log_debug("string store: %8zu bytes", trie->strings->len);
+ log_debug("strings start: %8"PRIu64, t.strings_off);
out:
free(filename_tmp);
return err;