]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: add debug logging for the output filename
authorRoss Burton <ross.burton@arm.com>
Mon, 20 Jul 2026 09:38:43 +0000 (10:38 +0100)
committerRoss Burton <ross.burton@arm.com>
Mon, 20 Jul 2026 10:24:57 +0000 (11:24 +0100)
It's useful to see exactly what file was written to when updating the
HWDB.

src/shared/hwdb-util.c

index b42681a289cc76b8b5fef599a71bc0dca6858b63..b3c48e2a5f685d3b6b07f8bbef703e102b7bc8dc 100644 (file)
@@ -418,6 +418,7 @@ static int trie_store(struct trie *trie, const char *filename, bool compat) {
         /* write succeeded */
 
         log_debug("=== trie on-disk ===");
+        log_debug("filename:         %s", filename);
         log_debug("size:             %8"PRIi64" bytes", size);
         log_debug("header:           %8zu bytes", sizeof(struct trie_header_f));
         log_debug("nodes:            %8"PRIu64" bytes (%8"PRIu64")",