@@ -948,18 +948,18 @@ static void ionic_lif_rx_mode(struct ionic_lif *lif, unsigned int rx_mode)
948
948
int i ;
949
949
#define REMAIN (__x ) (sizeof(buf) - (__x))
950
950
951
- i = snprintf (buf , sizeof (buf ), "rx_mode 0x%04x -> 0x%04x:" ,
952
- lif -> rx_mode , rx_mode );
951
+ i = scnprintf (buf , sizeof (buf ), "rx_mode 0x%04x -> 0x%04x:" ,
952
+ lif -> rx_mode , rx_mode );
953
953
if (rx_mode & IONIC_RX_MODE_F_UNICAST )
954
- i += snprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_UNICAST" );
954
+ i += scnprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_UNICAST" );
955
955
if (rx_mode & IONIC_RX_MODE_F_MULTICAST )
956
- i += snprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_MULTICAST" );
956
+ i += scnprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_MULTICAST" );
957
957
if (rx_mode & IONIC_RX_MODE_F_BROADCAST )
958
- i += snprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_BROADCAST" );
958
+ i += scnprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_BROADCAST" );
959
959
if (rx_mode & IONIC_RX_MODE_F_PROMISC )
960
- i += snprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_PROMISC" );
960
+ i += scnprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_PROMISC" );
961
961
if (rx_mode & IONIC_RX_MODE_F_ALLMULTI )
962
- i += snprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_ALLMULTI" );
962
+ i += scnprintf (& buf [i ], REMAIN (i ), " RX_MODE_F_ALLMULTI" );
963
963
netdev_dbg (lif -> netdev , "lif%d %s\n" , lif -> index , buf );
964
964
965
965
err = ionic_adminq_post_wait (lif , & ctx );
0 commit comments