]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
modules/sd_watchdog nitpick: fix printf on some systems
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 2 Oct 2019 13:13:22 +0000 (15:13 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 2 Oct 2019 13:16:38 +0000 (15:16 +0200)
The integer length didn't match on normal 32-bit linux.

modules/sd_watchdog/sd_watchdog.c

index 76f0a96dfb02946730c113fc1e5fe6c7310840dd..3aeb7b0518761aacacc9c1cd5ea7d38abe6b3e68 100644 (file)
@@ -58,7 +58,7 @@ int sd_watchdog_init(struct kr_module *module)
                return kr_error(ret);
        }
 
-       kr_log_verbose("[sd_watchdog] enabled (repeat: %ld ms, timeout: %ld ms)\n",
+       kr_log_verbose("[sd_watchdog] enabled (repeat: %"PRIu64" ms, timeout: %"PRIu64" ms)\n",
                delay_ms, conf->timeout_usec / 1000);
 
        return kr_ok();