Skip to content

Commit

Permalink
drivers/net: update format specifier on lan9250 driver
Browse files Browse the repository at this point in the history
Fix print statement for uint8 and uint16 types.

Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
  • Loading branch information
fdcavalcanti authored and cederom committed Mar 5, 2025
1 parent 9bfde6b commit 5e52e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/lan9250.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ static void lan9250_wait_ready(FAR struct lan9250_driver_s *priv,

if (timeout)
{
nerr("ERROR: wait register:0x%02" PRIx32 \
nerr("ERROR: wait register:0x%04" PRIx16 \
", mask:0x%08" PRIx32 \
", expected:0x%08" PRIx32 "\n",
address, mask, expected);
Expand Down Expand Up @@ -736,7 +736,7 @@ static void lan9250_wait_mac_ready(FAR struct lan9250_driver_s *priv,

if (timeout)
{
nerr("ERROR: wait MAC register:0x%02" PRIx32 \
nerr("ERROR: wait MAC register:0x%02" PRIx8 \
", mask:0x%08" PRIx32 ", expect:0x%08" PRIx32 "\n",
address, mask, expected);
}
Expand Down

0 comments on commit 5e52e75

Please sign in to comment.