Skip to content

Commit

Permalink
[build]: Fix build error when compiling for armhf (32-bit) (#30)
Browse files Browse the repository at this point in the history
Changed format specifiers from %lu to %" PRIu64 " to avoid compilation errors
in arm 32-bit
  • Loading branch information
dflynn-Nokia authored and Pterosaur committed Jan 20, 2021
1 parent 103e164 commit 1fabaed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pae/ieee802_1x_kay.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <time.h>
#include "includes.h"
#include "inttypes.h"
#include "common.h"
#include "list.h"
#include "eloop.h"
Expand Down Expand Up @@ -4209,7 +4210,7 @@ int ieee802_1x_kay_get_macsec(struct ieee802_1x_kay *kay, char *buf,
dl_list_for_each(txsa, &p->txsc->sa_list,
struct transmit_sa, list) {
res = os_snprintf(pos2, end - pos2,
"\t\tAN: %u\tActive: %s\tPN: %lu\n",
"\t\tAN: %u\tActive: %s\tPN: %" PRIu64 "\n",
txsa->an, yes_no(txsa->in_use),
txsa->next_pn);
if (os_snprintf_error(end - pos2, res))
Expand All @@ -4227,7 +4228,7 @@ int ieee802_1x_kay_get_macsec(struct ieee802_1x_kay *kay, char *buf,
dl_list_for_each(rxsa, &rxsc->sa_list, struct receive_sa,
list) {
res = os_snprintf(pos2, end - pos2,
"\t\tAN: %u\tActive: %s\tPN: %lu\n",
"\t\tAN: %u\tActive: %s\tPN: %" PRIu64 "\n",
rxsa->an, yes_no(rxsa->in_use),
rxsa->next_pn);
if (os_snprintf_error(end - pos2, res))
Expand Down

0 comments on commit 1fabaed

Please sign in to comment.