Skip to content

Commit

Permalink
Fix printf format string as per message from наб
Browse files Browse the repository at this point in the history
  • Loading branch information
dfskoll committed Feb 8, 2023
1 parent 02ff342 commit 36bbf5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pppoe-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -2270,8 +2270,8 @@ static int handle_status(ClientConnection *client, const char* const* argv, int
if (opt[wlen-1] == ' ')
--wlen;

opt_status("active sessions", "%lu", NumActiveSessions);
opt_status("maximum sessions", "%lu", NumSessionSlots);
opt_status("active sessions", "%zu", NumActiveSessions);
opt_status("maximum sessions", "%zu", NumSessionSlots);
opt_status("sessions per mac", "%d", MaxSessionsPerMac);
opt_status("interface count", "%d", NumInterfaces);
opt_status("global drain", "%s", drain_string[draining]);
Expand Down

0 comments on commit 36bbf5a

Please sign in to comment.