--- src/attack.c.orig 2023-11-30 02:05:44.000000000 -0500 +++ src/attack.c 2024-01-26 17:29:41.957545000 -0500 @@ -31,7 +31,6 @@ #include "utils.h" #include /* for inet_ntoa() */ -#include #include /* for errno() */ #include #include @@ -1614,13 +1613,13 @@ gettimeofday (&now, NULL); if (test_alive_hosts_only) - g_message ("Vulnerability scan %s finished in %ld seconds: " + g_message ("Vulnerability scan %s finished in %lld seconds: " "%d alive hosts of %d", - globals->scan_id, now.tv_sec - then.tv_sec, + globals->scan_id, (long long)now.tv_sec - then.tv_sec, gvm_hosts_count (alive_hosts_list), gvm_hosts_count (hosts)); else - g_message ("Vulnerability scan %s finished in %ld seconds: %d hosts", - globals->scan_id, now.tv_sec - then.tv_sec, + g_message ("Vulnerability scan %s finished in %lld seconds: %d hosts", + globals->scan_id, (long long)now.tv_sec - then.tv_sec, gvm_hosts_count (hosts)); gvm_hosts_free (hosts);