Skip to content

Commit

Permalink
Fix: use %zu instead of %lu when print size_t of count
Browse files Browse the repository at this point in the history
Some architectures don't use unsigned long therefore it is better to use
the specialized %z indicator when printing size_t.
  • Loading branch information
nichtsfrei committed Nov 2, 2023
1 parent bef154c commit c7db667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ apply_hosts_reverse_lookup_preferences (gvm_hosts_t *hosts)
gvm_hosts_t *excluded;

excluded = gvm_hosts_reverse_lookup_unify_excluded (hosts);
g_debug ("reverse_lookup_unify: Skipped %lu host(s).", excluded->count);
g_debug ("reverse_lookup_unify: Skipped %zu host(s).", excluded->count);

// Get the amount of hosts which are excluded now for this option,
// but they are already in the exclude list.
Expand All @@ -1111,7 +1111,7 @@ apply_hosts_reverse_lookup_preferences (gvm_hosts_t *hosts)
gvm_hosts_t *excluded;

excluded = gvm_hosts_reverse_lookup_only_excluded (hosts);
g_debug ("reverse_lookup_unify: Skipped %lu host(s).", excluded->count);
g_debug ("reverse_lookup_unify: Skipped %zu host(s).", excluded->count);
// Get the amount of hosts which are excluded now for this option,
// but they are already in the exclude list.
// This is to avoid issues with the scan progress calculation, since
Expand Down

0 comments on commit c7db667

Please sign in to comment.